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");
        }
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to