Fix needless formatting differences vs modutils
authorEric Andersen <andersen@codepoet.org>
Fri, 18 Oct 2002 22:14:07 +0000 (22:14 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 18 Oct 2002 22:14:07 +0000 (22:14 -0000)
modutils/lsmod.c

index 95eeaa52f487c2de23316cd44830576a517a9bd5..df4b3c16b19298d9c19b6f9bc029b216664e280c 100644 (file)
@@ -147,24 +147,24 @@ extern int lsmod_main(int argc, char **argv)
                        }
                        perror_msg_and_die("module %s: QM_REFS", mn);
                }
-               printf("%-20s%8lu%4ld ", mn, info.size, info.usecount);
+               printf("%-20s%8lu%4ld", mn, info.size, info.usecount);
                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)");
                }
-               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) printf("]");
 
                printf("\n");
        }