From: Jan Kiszka <[email protected]>

There has been the request to prefix hex output with "0x". Also, one ":"
was missing.

Signed-off-by: Jan Kiszka <[email protected]>
---
 hypervisor/arch/x86/pci.c | 4 ++--
 hypervisor/pci.c          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hypervisor/arch/x86/pci.c b/hypervisor/arch/x86/pci.c
index f03e6a1b..c979cdad 100644
--- a/hypervisor/arch/x86/pci.c
+++ b/hypervisor/arch/x86/pci.c
@@ -201,8 +201,8 @@ int x86_pci_config_handler(u16 port, bool dir_in, unsigned 
int size)
        return result;
 
 invalid_access:
-       panic_printk("FATAL: Invalid PCI config %s, port: %x, size %d, "
-                    "address port: %x\n", dir_in ? "read" : "write", port,
+       panic_printk("FATAL: Invalid PCI config %s, port: 0x%x, size: %d, "
+                    "address port: 0x%x\n", dir_in ? "read" : "write", port,
                     size, cell->arch.pci_addr_port_val);
        return -1;
 
diff --git a/hypervisor/pci.c b/hypervisor/pci.c
index 0f12e8b7..9274a0b1 100644
--- a/hypervisor/pci.c
+++ b/hypervisor/pci.c
@@ -434,7 +434,7 @@ static enum mmio_result pci_mmconfig_access_handler(void 
*arg,
 
 invalid_access:
        panic_printk("FATAL: Invalid PCI MMCONFIG write, device %02x:%02x.%x, "
-                    "reg: %x, size: %d\n", PCI_BDF_PARAMS(bdf), reg_addr,
+                    "reg: 0x%x, size: %d\n", PCI_BDF_PARAMS(bdf), reg_addr,
                     mmio->size);
        return MMIO_ERROR;
 
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/bd3fa750-7d6f-5ac5-1900-da3abda375a8%40siemens.com.

Reply via email to