projects
/
platform
/
upstream
/
libpciaccess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d625c
)
Make the base address printout of scanpci more usable.
author
Eric Anholt
<eric@anholt.net>
Tue, 28 Aug 2007 23:02:46 +0000
(16:02 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 28 Aug 2007 23:09:13 +0000
(16:09 -0700)
src/scanpci.c
patch
|
blob
|
history
diff --git
a/src/scanpci.c
b/src/scanpci.c
index
2c49d80
..
eb6e94f
100644
(file)
--- 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 ) {