Commit 72e0c0b4 authored by Henry Zhao's avatar Henry Zhao Committed by Alan Coopersmith
Browse files

scanpci: print meaningful info on BASEROM


Signed-off-by: default avatarHenry Zhao <henry.zhao@oracle.com>
Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent ba530318
......@@ -23,7 +23,7 @@
noinst_PROGRAMS = scanpci
AM_CPPFLAGS = -I$(top_srcdir)/include
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
LDADD = $(top_builddir)/src/libpciaccess.la
scanpci_SOURCES = 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 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment