aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorNeel Natu <neel@FreeBSD.org>2013-02-10 19:35:40 +0000
committerNeel Natu <neel@FreeBSD.org>2013-02-10 19:35:40 +0000
commitf37ba7263208005ad42532cf6f4ef20a50a4a99c (patch)
tree4d59547fc406283374b9ec9a93847248dbe47e41 /usr.sbin
parentfd9778c23634500624edae01801e18e87b2b9fcf (diff)
downloadsrc-f37ba7263208005ad42532cf6f4ef20a50a4a99c.tar.gz
src-f37ba7263208005ad42532cf6f4ef20a50a4a99c.zip
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.
Notes
Notes: svn path=/head/; revision=246632
Diffstat (limited to 'usr.sbin')
-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 52ad09a70962..58ffddd9cfab 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");
}
}