From d4f44bc7a697726a0885eaec2bf3399720a00ff6 Mon Sep 17 00:00:00 2001 From: Yonghua Huang Date: Tue, 30 Jul 2019 14:59:51 +0800 Subject: [PATCH] hv: fix debug message format in 'init_pci_pdev_list' To fix below err format: "%s" is used to output 'secondary_bus' with type of 'uint8_t' Tracked-On: #861 Signed-off-by: Yonghua Huang --- hypervisor/hw/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/hw/pci.c b/hypervisor/hw/pci.c index 569484b6f..f6dc5b61b 100644 --- a/hypervisor/hw/pci.c +++ b/hypervisor/hw/pci.c @@ -177,7 +177,7 @@ void init_pci_pdev_list(void) secondary_bus = (uint8_t)pci_pdev_read_cfg(pbdf, PCIR_SECBUS_1, 1U); if (bus_to_scan[secondary_bus] != BUS_SCAN_SKIP) { pr_err("%s, bus %d may be downstream of different PCI bridges", - secondary_bus); + __func__, secondary_bus); } else { bus_to_scan[secondary_bus] = BUS_SCAN_PENDING; }