aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'modutils')
-rw-r--r--modutils/lsmod.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index da8663acb..a2330fe98 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -122,11 +122,13 @@ int lsmod_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED)
122 if (!(info.flags & NEW_MOD_USED_ONCE)) 122 if (!(info.flags & NEW_MOD_USED_ONCE))
123 printf(" (unused)"); 123 printf(" (unused)");
124 } 124 }
125 if (count) printf(" ["); 125 if (count)
126 printf(" [");
126 for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) { 127 for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) {
127 printf("%s%s", dn, (j==count-1)? "":" "); 128 printf("%s%s", dn, (j==count-1)? "":" ");
128 } 129 }
129 if (count) printf("]"); 130 if (count)
131 bb_putchar(']');
130 132
131 bb_putchar('\n'); 133 bb_putchar('\n');
132 } 134 }