Print the correct value for the map type on a verbose boot.

PR:	kern/18662
Submitted by: tamaru@ap.t.u-tokyo.ac.jp
This commit is contained in:
Doug Rabson 2000-05-18 20:28:15 +00:00
parent 1940c51aac
commit 2e9a65c474
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60686
2 changed files with 2 additions and 2 deletions

View file

@ -1083,7 +1083,7 @@ pci_add_map(device_t dev, pcicfgregs* cfg, int reg)
#endif
if (bootverbose) {
printf("\tmap[%02x]: type %x, range %2d, base %08x, size %2d",
reg, pci_maptype(base), ln2range,
reg, pci_maptype(map), ln2range,
(unsigned int) base, ln2size);
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
printf(", port disabled\n");

View file

@ -1083,7 +1083,7 @@ pci_add_map(device_t dev, pcicfgregs* cfg, int reg)
#endif
if (bootverbose) {
printf("\tmap[%02x]: type %x, range %2d, base %08x, size %2d",
reg, pci_maptype(base), ln2range,
reg, pci_maptype(map), ln2range,
(unsigned int) base, ln2size);
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
printf(", port disabled\n");