Commit b4572d45 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

ioat: print PCI addresses in hex for consistency



Change-Id: I0cc81e0b44f75268b1171c4ab5a23f97d9f8c8e2
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent a9de0d5f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -217,8 +217,9 @@ unregister_workers(void)
static bool
probe_cb(void *cb_ctx, struct spdk_pci_device *pci_dev)
{
	printf(" Found matching device at %d:%d:%d "
	printf(" Found matching device at %04x:%02x:%02x.%x "
	       "vendor:0x%04x device:0x%04x\n",
	       spdk_pci_device_get_domain(pci_dev),
	       spdk_pci_device_get_bus(pci_dev), spdk_pci_device_get_dev(pci_dev),
	       spdk_pci_device_get_func(pci_dev),
	       spdk_pci_device_get_vendor_id(pci_dev), spdk_pci_device_get_device_id(pci_dev));
+2 −1
Original line number Diff line number Diff line
@@ -201,8 +201,9 @@ ioat_done(void *cb_arg)
static bool
probe_cb(void *cb_ctx, struct spdk_pci_device *pci_dev)
{
	printf(" Found matching device at %d:%d:%d "
	printf(" Found matching device at %04x:%02x:%02x.%x "
	       "vendor:0x%04x device:0x%04x\n",
	       spdk_pci_device_get_domain(pci_dev),
	       spdk_pci_device_get_bus(pci_dev), spdk_pci_device_get_dev(pci_dev),
	       spdk_pci_device_get_func(pci_dev),
	       spdk_pci_device_get_vendor_id(pci_dev), spdk_pci_device_get_device_id(pci_dev));
+2 −1
Original line number Diff line number Diff line
@@ -237,7 +237,8 @@ probe_cb(void *cb_ctx, struct spdk_pci_device *pci_dev)
	struct ioat_probe_ctx *ctx = cb_ctx;
	struct spdk_pci_addr pci_addr = spdk_pci_device_get_addr(pci_dev);

	SPDK_NOTICELOG(" Found matching device at %d:%d:%d vendor:0x%04x device:0x%04x\n",
	SPDK_NOTICELOG(" Found matching device at %04x:%02x:%02x.%x vendor:0x%04x device:0x%04x\n",
		       pci_addr.domain,
		       pci_addr.bus,
		       pci_addr.dev,
		       pci_addr.func,