From: Eric Anholt Date: Wed, 10 Oct 2007 21:32:38 +0000 (-0700) Subject: Add domain output to scanpci. X-Git-Tag: libpciaccess-0.10~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28fea32f987a74d365d01bc5870a8bce1c393d59;p=platform%2Fupstream%2Flibpciaccess.git Add domain output to scanpci. --- 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,