summaryrefslogtreecommitdiff
path: root/modutils/lsmod.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-06-05 06:51:06 +0000
committerDenis Vlasenko2008-06-05 06:51:06 +0000
commit7d60fc1c0a96983d0909f50f8db26ca1b770b039 (patch)
tree91c28e9c23da1ae55d5b2c82d16fe39b340f40dc /modutils/lsmod.c
parentbedfabd500b5dd684ac0b0780147a81bbb37f084 (diff)
downloadbusybox-7d60fc1c0a96983d0909f50f8db26ca1b770b039.zip
busybox-7d60fc1c0a96983d0909f50f8db26ca1b770b039.tar.gz
replace single-char printf's with bb_putchar
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r--modutils/lsmod.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index da8663a..a2330fe 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -122,11 +122,13 @@ int lsmod_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED)
if (!(info.flags & NEW_MOD_USED_ONCE))
printf(" (unused)");
}
- if (count) printf(" [");
+ if (count)
+ printf(" [");
for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) {
printf("%s%s", dn, (j==count-1)? "":" ");
}
- if (count) printf("]");
+ if (count)
+ bb_putchar(']');
bb_putchar('\n');
}