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

From: Rostislav Krasny <rosti_bsd_at_yahoo.com>
Date: Fri, 17 Sep 2004 10:37:59 -0700 (PDT)
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
_at__at_ -48,7 +48,7 _at__at_
     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)
_at__at_ -66,7 +66,7 _at__at_

     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
Received on Fri Sep 17 2004 - 15:37:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:12 UTC