patch: makes an output of 'kldstat -v' looks a little better

Rostislav Krasny rosti_bsd at yahoo.com
Fri Sep 17 10:38:00 PDT 2004


Hello. Would someone like commit following patch? It makes an output of
'kldstat -v' looks a little better with module IDs bigger than 99.

--- /usr/src/sbin/kldstat/kldstat.c     Sun May 30 13:10:41 2004
+++ kldstat.c   Fri Sep 17 20:08:33 2004
@@ -48,7 +48,7 @@
     if (modstat(modid, &stat) < 0)
        warn("can't stat module id %d", modid);
     else
-       printf("\t\t%2d %s\n", stat.id, stat.name);
+       printf("\t\t%3d %s\n", stat.id, stat.name);
 }

 static void printfile(int fileid, int verbose)
@@ -66,7 +66,7 @@

     if (verbose) {
        printf("\tContains modules:\n");
-       printf("\t\tId Name\n");
+       printf("\t\t Id Name\n");
        for (modid = kldfirstmod(fileid); modid > 0;
             modid = modfnext(modid))
            printmod(modid);



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


More information about the freebsd-current mailing list