svn commit: r246632 - head/usr.sbin/pciconf

Neel Natu neel at FreeBSD.org
Sun Feb 10 19:35:41 UTC 2013


Author: neel
Date: Sun Feb 10 19:35:40 2013
New Revision: 246632
URL: http://svnweb.freebsd.org/changeset/base/246632

Log:
  Use the entire 64 bits of 'bar.pbi_length' when printing the bar size.
  
  This allows bar sizes greater than or equal to 4GB to be displayed correctly.

Modified:
  head/usr.sbin/pciconf/pciconf.c

Modified: head/usr.sbin/pciconf/pciconf.c
==============================================================================
--- head/usr.sbin/pciconf/pciconf.c	Sun Feb 10 19:32:55 2013	(r246631)
+++ head/usr.sbin/pciconf/pciconf.c	Sun Feb 10 19:35:40 2013	(r246632)
@@ -290,7 +290,7 @@ list_bars(int fd, struct pci_conf *p)
 		}
 		printf("    bar   [%02x] = type %s, range %2d, base %#jx, ",
 		    PCIR_BAR(i), type, range, (uintmax_t)base);
-		printf("size %2d, %s\n", (int)bar.pbi_length,
+		printf("size %ju, %s\n", (uintmax_t)bar.pbi_length,
 		    bar.pbi_enabled ? "enabled" : "disabled");
 	}
 }


More information about the svn-src-all mailing list