diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-09-12 16:20:49 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-09-12 16:20:49 +0000 |
commit | ccb0a9ba88ed5ed33390908dca7994447fe2dc32 (patch) | |
tree | 346de18c5baadfab7bbc82093ca7e8164bd53c20 | |
parent | fca8050f0fd224a22136b74fce23b700f1d07ccf (diff) | |
download | busybox-ccb0a9ba88ed5ed33390908dca7994447fe2dc32.tar.gz |
Formatting cleanup patch from Bryan Rittmeyer <bryan@ixiacom.com>.
-Erik
-rw-r--r-- | lsmod.c | 14 | ||||
-rw-r--r-- | modutils/lsmod.c | 14 |
2 files changed, 14 insertions, 14 deletions
@@ -100,21 +100,21 @@ extern int lsmod_main(int argc, char **argv) for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) { printf("%s%s", dn, (j==count-1)? "":" "); } - if (count) printf("]"); - printf("\n"); + if (count) printf("] "); if (info.flags & NEW_MOD_DELETED) - printf(" (deleted)"); + printf("(deleted)"); else if (info.flags & NEW_MOD_INITIALIZING) - printf(" (initializing)"); + printf("(initializing)"); else if (!(info.flags & NEW_MOD_RUNNING)) - printf(" (uninitialized)"); + printf("(uninitialized)"); else { if (info.flags & NEW_MOD_AUTOCLEAN) - printf(" (autoclean)"); + printf("(autoclean)"); if (!(info.flags & NEW_MOD_USED_ONCE)) - printf(" (unused)"); + printf("(unused)"); } + printf("\n"); } diff --git a/modutils/lsmod.c b/modutils/lsmod.c index 945f420e0..bd1cf9c48 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c @@ -100,21 +100,21 @@ extern int lsmod_main(int argc, char **argv) for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) { printf("%s%s", dn, (j==count-1)? "":" "); } - if (count) printf("]"); - printf("\n"); + if (count) printf("] "); if (info.flags & NEW_MOD_DELETED) - printf(" (deleted)"); + printf("(deleted)"); else if (info.flags & NEW_MOD_INITIALIZING) - printf(" (initializing)"); + printf("(initializing)"); else if (!(info.flags & NEW_MOD_RUNNING)) - printf(" (uninitialized)"); + printf("(uninitialized)"); else { if (info.flags & NEW_MOD_AUTOCLEAN) - printf(" (autoclean)"); + printf("(autoclean)"); if (!(info.flags & NEW_MOD_USED_ONCE)) - printf(" (unused)"); + printf("(unused)"); } + printf("\n"); } |