Make output match the real lsmod -- print (autoclean) type
authorEric Andersen <andersen@codepoet.org>
Sat, 24 Feb 2001 19:51:54 +0000 (19:51 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 24 Feb 2001 19:51:54 +0000 (19:51 -0000)
stuff first not last.
 -Erik

lsmod.c
modutils/lsmod.c

diff --git a/lsmod.c b/lsmod.c
index c97d199a69e40d262cd86011ac05cc9b52998dc8..a853db888fca20080020aacee82ed949a1a27135 100644 (file)
--- a/lsmod.c
+++ b/lsmod.c
@@ -103,12 +103,6 @@ extern int lsmod_main(int argc, char **argv)
                        deps = xrealloc(deps, bufsize = count);
                }
                printf("%-20s%8lu%4ld ", mn, info.size, info.usecount);
-               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 (info.flags & NEW_MOD_DELETED)
                        printf("(deleted)");
                else if (info.flags & NEW_MOD_INITIALIZING)
@@ -121,6 +115,12 @@ extern int lsmod_main(int argc, char **argv)
                        if (!(info.flags & NEW_MOD_USED_ONCE))
                                printf("(unused)");
                }
+               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("] ");
+
                printf("\n");
        }
 
index c97d199a69e40d262cd86011ac05cc9b52998dc8..a853db888fca20080020aacee82ed949a1a27135 100644 (file)
@@ -103,12 +103,6 @@ extern int lsmod_main(int argc, char **argv)
                        deps = xrealloc(deps, bufsize = count);
                }
                printf("%-20s%8lu%4ld ", mn, info.size, info.usecount);
-               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 (info.flags & NEW_MOD_DELETED)
                        printf("(deleted)");
                else if (info.flags & NEW_MOD_INITIALIZING)
@@ -121,6 +115,12 @@ extern int lsmod_main(int argc, char **argv)
                        if (!(info.flags & NEW_MOD_USED_ONCE))
                                printf("(unused)");
                }
+               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("] ");
+
                printf("\n");
        }