diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-05 06:51:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-05 06:51:06 +0000 |
commit | 7d60fc1c0a96983d0909f50f8db26ca1b770b039 (patch) | |
tree | 91c28e9c23da1ae55d5b2c82d16fe39b340f40dc /modutils | |
parent | bedfabd500b5dd684ac0b0780147a81bbb37f084 (diff) | |
download | busybox-w32-7d60fc1c0a96983d0909f50f8db26ca1b770b039.tar.gz busybox-w32-7d60fc1c0a96983d0909f50f8db26ca1b770b039.tar.bz2 busybox-w32-7d60fc1c0a96983d0909f50f8db26ca1b770b039.zip |
replace single-char printf's with bb_putchar
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/lsmod.c | 6 |
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 | } |