Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jul 2018 09:14:00 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335860 - head/sbin/kldstat
Message-ID:  <201807020914.w629E0hG092348@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon Jul  2 09:14:00 2018
New Revision: 335860
URL: https://svnweb.freebsd.org/changeset/base/335860

Log:
  Allow three digits of module id without breaking table alignment.

Modified:
  head/sbin/kldstat/kldstat.c

Modified: head/sbin/kldstat/kldstat.c
==============================================================================
--- head/sbin/kldstat/kldstat.c	Mon Jul  2 09:11:30 2018	(r335859)
+++ head/sbin/kldstat/kldstat.c	Mon Jul  2 09:14:00 2018	(r335860)
@@ -55,10 +55,10 @@ printmod(int modid)
 	warn("can't stat module id %d", modid);
     else
 	if (showdata) {
-	    printf("\t\t%2d %s (%d, %u, 0x%lx)\n", stat.id, stat.name, 
+	    printf("\t\t%3d %s (%d, %u, 0x%lx)\n", stat.id, stat.name, 
 	        stat.data.intval, stat.data.uintval, stat.data.ulongval);
 	} else {
-		printf("\t\t%2d %s\n", stat.id, stat.name);
+		printf("\t\t%3d %s\n", stat.id, stat.name);
 	}
 }
 
@@ -90,7 +90,7 @@ printfile(int fileid, int verbose, int humanized)
     if (verbose) {
 	printf(" (%s)\n", stat.pathname);
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807020914.w629E0hG092348>