diff options
author | neel <neel@FreeBSD.org> | 2013-02-10 19:35:40 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2013-02-10 19:35:40 +0000 |
commit | 329d8f638fe8ebf13e65dd27511850b3c32fba97 (patch) | |
tree | 4d59547fc406283374b9ec9a93847248dbe47e41 | |
parent | 81ba0e4f37bbec1f8c51a12e9826f9d6204bc23b (diff) | |
download | FreeBSD-src-329d8f638fe8ebf13e65dd27511850b3c32fba97.zip FreeBSD-src-329d8f638fe8ebf13e65dd27511850b3c32fba97.tar.gz |
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.
-rw-r--r-- | usr.sbin/pciconf/pciconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c index 52ad09a..58ffddd 100644 --- a/usr.sbin/pciconf/pciconf.c +++ b/usr.sbin/pciconf/pciconf.c @@ -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"); } } |