summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pciconf
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2013-02-10 19:35:40 +0000
committerneel <neel@FreeBSD.org>2013-02-10 19:35:40 +0000
commit329d8f638fe8ebf13e65dd27511850b3c32fba97 (patch)
tree4d59547fc406283374b9ec9a93847248dbe47e41 /usr.sbin/pciconf
parent81ba0e4f37bbec1f8c51a12e9826f9d6204bc23b (diff)
downloadFreeBSD-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.
Diffstat (limited to 'usr.sbin/pciconf')
-rw-r--r--usr.sbin/pciconf/pciconf.c2
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");
}
}
OpenPOWER on IntegriCloud