diff options
-rw-r--r-- | lsmod.c | 12 | ||||
-rw-r--r-- | modutils/lsmod.c | 12 |
2 files changed, 12 insertions, 12 deletions
@@ -103,12 +103,6 @@ extern int lsmod_main(int argc, char **argv) | |||
103 | deps = xrealloc(deps, bufsize = count); | 103 | deps = xrealloc(deps, bufsize = count); |
104 | } | 104 | } |
105 | printf("%-20s%8lu%4ld ", mn, info.size, info.usecount); | 105 | printf("%-20s%8lu%4ld ", mn, info.size, info.usecount); |
106 | if (count) printf("["); | ||
107 | for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) { | ||
108 | printf("%s%s", dn, (j==count-1)? "":" "); | ||
109 | } | ||
110 | if (count) printf("] "); | ||
111 | |||
112 | if (info.flags & NEW_MOD_DELETED) | 106 | if (info.flags & NEW_MOD_DELETED) |
113 | printf("(deleted)"); | 107 | printf("(deleted)"); |
114 | else if (info.flags & NEW_MOD_INITIALIZING) | 108 | else if (info.flags & NEW_MOD_INITIALIZING) |
@@ -121,6 +115,12 @@ extern int lsmod_main(int argc, char **argv) | |||
121 | if (!(info.flags & NEW_MOD_USED_ONCE)) | 115 | if (!(info.flags & NEW_MOD_USED_ONCE)) |
122 | printf("(unused)"); | 116 | printf("(unused)"); |
123 | } | 117 | } |
118 | if (count) printf("["); | ||
119 | for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) { | ||
120 | printf("%s%s", dn, (j==count-1)? "":" "); | ||
121 | } | ||
122 | if (count) printf("] "); | ||
123 | |||
124 | printf("\n"); | 124 | printf("\n"); |
125 | } | 125 | } |
126 | 126 | ||
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index c97d199a6..a853db888 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
@@ -103,12 +103,6 @@ extern int lsmod_main(int argc, char **argv) | |||
103 | deps = xrealloc(deps, bufsize = count); | 103 | deps = xrealloc(deps, bufsize = count); |
104 | } | 104 | } |
105 | printf("%-20s%8lu%4ld ", mn, info.size, info.usecount); | 105 | printf("%-20s%8lu%4ld ", mn, info.size, info.usecount); |
106 | if (count) printf("["); | ||
107 | for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) { | ||
108 | printf("%s%s", dn, (j==count-1)? "":" "); | ||
109 | } | ||
110 | if (count) printf("] "); | ||
111 | |||
112 | if (info.flags & NEW_MOD_DELETED) | 106 | if (info.flags & NEW_MOD_DELETED) |
113 | printf("(deleted)"); | 107 | printf("(deleted)"); |
114 | else if (info.flags & NEW_MOD_INITIALIZING) | 108 | else if (info.flags & NEW_MOD_INITIALIZING) |
@@ -121,6 +115,12 @@ extern int lsmod_main(int argc, char **argv) | |||
121 | if (!(info.flags & NEW_MOD_USED_ONCE)) | 115 | if (!(info.flags & NEW_MOD_USED_ONCE)) |
122 | printf("(unused)"); | 116 | printf("(unused)"); |
123 | } | 117 | } |
118 | if (count) printf("["); | ||
119 | for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) { | ||
120 | printf("%s%s", dn, (j==count-1)? "":" "); | ||
121 | } | ||
122 | if (count) printf("] "); | ||
123 | |||
124 | printf("\n"); | 124 | printf("\n"); |
125 | } | 125 | } |
126 | 126 | ||