diff options
author | Eric Anholt <eric@anholt.net> | 2007-10-10 14:32:38 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-10-10 14:32:38 -0700 |
commit | 28fea32f987a74d365d01bc5870a8bce1c393d59 (patch) | |
tree | 50954e9ec75d22553cbc29dcc6b0938e71d3f1ef | |
parent | 393145db90578d7d598fccf949b249217066a67c (diff) |
Add domain output to scanpci.
-rw-r--r-- | src/scanpci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scanpci.c b/src/scanpci.c index eb6e94f..c8a6adf 100644 --- a/src/scanpci.c +++ b/src/scanpci.c @@ -61,7 +61,10 @@ print_pci_device( struct pci_device * dev, int verbose ) dev_name = "Device unknown"; } - printf("\npci bus 0x%04x cardnum 0x%02x function 0x%02x:" + printf("\npci "); + if (dev->domain != 0) + printf("domain 0x%04x ", dev->domain); + printf("bus 0x%04x cardnum 0x%02x function 0x%02x:" " vendor 0x%04x device 0x%04x\n", dev->bus, dev->dev, |