diff options
author | Eric Anholt <eric@anholt.net> | 2007-08-28 16:02:46 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-08-28 16:09:13 -0700 |
commit | c87273e8e20c8bff892ded31295dba103f27dd35 (patch) | |
tree | 9a77e316c9b2eccc30e164f00abdc681951b9497 | |
parent | 47d625ccea7dbcd6b69009aa1ec64a96e97513f6 (diff) |
Make the base address printout of scanpci more usable.
-rw-r--r-- | src/scanpci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scanpci.c b/src/scanpci.c index 2c49d80..eb6e94f 100644 --- a/src/scanpci.c +++ b/src/scanpci.c @@ -128,10 +128,10 @@ print_pci_device( struct pci_device * dev, int verbose ) pci_device_probe( dev ); for ( i = 0 ; i < 6 ; i++ ) { if ( dev->regions[i].base_addr != 0 ) { - printf( " BASE%u 0x%08x addr 0x%08x %s", + printf( " BASE%u 0x%08x SIZE %d %s", i, - 0, (intptr_t) dev->regions[i].base_addr, + (size_t) dev->regions[i].size, (dev->regions[i].is_IO) ? "I/O" : "MEM" ); if ( ! dev->regions[i].is_IO ) { |