aboutsummaryrefslogtreecommitdiff
path: root/modutils/lsmod.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-10-18 22:14:07 +0000
committerEric Andersen <andersen@codepoet.org>2002-10-18 22:14:07 +0000
commit31f9747a23cc22f35c5efb0841258d7c53e3d6a0 (patch)
tree934ec3ec2dc6b2aa3bf74fbf2d1007048c1422c1 /modutils/lsmod.c
parentd69e31fb937852a578e550c6fe0e80359d39212f (diff)
downloadbusybox-w32-31f9747a23cc22f35c5efb0841258d7c53e3d6a0.tar.gz
busybox-w32-31f9747a23cc22f35c5efb0841258d7c53e3d6a0.tar.bz2
busybox-w32-31f9747a23cc22f35c5efb0841258d7c53e3d6a0.zip
Fix needless formatting differences vs modutils
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r--modutils/lsmod.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 95eeaa52f..df4b3c16b 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -147,24 +147,24 @@ extern int lsmod_main(int argc, char **argv)
147 } 147 }
148 perror_msg_and_die("module %s: QM_REFS", mn); 148 perror_msg_and_die("module %s: QM_REFS", mn);
149 } 149 }
150 printf("%-20s%8lu%4ld ", mn, info.size, info.usecount); 150 printf("%-20s%8lu%4ld", mn, info.size, info.usecount);
151 if (info.flags & NEW_MOD_DELETED) 151 if (info.flags & NEW_MOD_DELETED)
152 printf("(deleted)"); 152 printf(" (deleted)");
153 else if (info.flags & NEW_MOD_INITIALIZING) 153 else if (info.flags & NEW_MOD_INITIALIZING)
154 printf("(initializing)"); 154 printf(" (initializing)");
155 else if (!(info.flags & NEW_MOD_RUNNING)) 155 else if (!(info.flags & NEW_MOD_RUNNING))
156 printf("(uninitialized)"); 156 printf(" (uninitialized)");
157 else { 157 else {
158 if (info.flags & NEW_MOD_AUTOCLEAN) 158 if (info.flags & NEW_MOD_AUTOCLEAN)
159 printf("(autoclean) "); 159 printf(" (autoclean) ");
160 if (!(info.flags & NEW_MOD_USED_ONCE)) 160 if (!(info.flags & NEW_MOD_USED_ONCE))
161 printf("(unused)"); 161 printf(" (unused)");
162 } 162 }
163 if (count) printf("["); 163 if (count) printf(" [");
164 for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) { 164 for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) {
165 printf("%s%s", dn, (j==count-1)? "":" "); 165 printf("%s%s", dn, (j==count-1)? "":" ");
166 } 166 }
167 if (count) printf("] "); 167 if (count) printf("]");
168 168
169 printf("\n"); 169 printf("\n");
170 } 170 }