Skip to content

Commit d4f44bc

Browse files
yonghuahacrnsi
authored andcommitted
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 <yonghua.huang@intel.com>
1 parent bde1d4b commit d4f44bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypervisor/hw/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void init_pci_pdev_list(void)
177177
secondary_bus = (uint8_t)pci_pdev_read_cfg(pbdf, PCIR_SECBUS_1, 1U);
178178
if (bus_to_scan[secondary_bus] != BUS_SCAN_SKIP) {
179179
pr_err("%s, bus %d may be downstream of different PCI bridges",
180-
secondary_bus);
180+
__func__, secondary_bus);
181181
} else {
182182
bus_to_scan[secondary_bus] = BUS_SCAN_PENDING;
183183
}

0 commit comments

Comments
 (0)