Date: Fri, 17 Sep 2004 10:37:59 -0700 (PDT) From: Rostislav Krasny <rosti_bsd@yahoo.com> To: freebsd-current@freebsd.org Subject: patch: makes an output of 'kldstat -v' looks a little better Message-ID: <20040917173759.92527.qmail@web14824.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040917173759.92527.qmail>