diff options
Diffstat (limited to 'scanpci/scanpci.c')
-rw-r--r-- | scanpci/scanpci.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scanpci/scanpci.c b/scanpci/scanpci.c index 1f5f8bd..a427692 100644 --- a/scanpci/scanpci.c +++ b/scanpci/scanpci.c @@ -47,6 +47,7 @@ #endif #include "pciaccess.h" +#include "pciaccess_private.h" static void @@ -168,8 +169,11 @@ print_pci_device( struct pci_device * dev, int verbose ) } if ( dev->rom_size ) { - printf( " BASEROM 0x%08x addr 0x%08x\n", - 0, 0 ); + struct pci_device_private *priv = + (struct pci_device_private *) dev; + + printf( " BASEROM 0x%08"PRIxPTR" SIZE %zu\n", + (intptr_t) priv->rom_base, (size_t) dev->rom_size); } pci_device_cfg_read_u8( dev, & int_pin, 61 ); |