From: Jan Kiszka <[email protected]>

This simplifies the association of a potential error with the related
device.

Signed-off-by: Jan Kiszka <[email protected]>
---
 hypervisor/ivshmem.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hypervisor/ivshmem.c b/hypervisor/ivshmem.c
index 44c430d..d9ce40f 100644
--- a/hypervisor/ivshmem.c
+++ b/hypervisor/ivshmem.c
@@ -323,6 +323,9 @@ int ivshmem_init(struct cell *cell, struct pci_device 
*device)
        struct ivshmem_data *iv;
        unsigned int id = 0;
 
+       printk("Adding virtual PCI device %02x:%02x.%x to cell \"%s\"\n",
+              PCI_BDF_PARAMS(dev_info->bdf), cell->config->name);
+
        if (dev_info->shmem_region >= cell->config->num_memory_regions)
                return trace_error(-EINVAL);
 
@@ -392,9 +395,6 @@ int ivshmem_init(struct cell *cell, struct pci_device 
*device)
                remote->remote = ive;
        }
 
-       printk("Adding virtual PCI device %02x:%02x.%x to cell \"%s\"\n",
-              PCI_BDF_PARAMS(dev_info->bdf), cell->config->name);
-
        return 0;
 }
 
-- 
2.1.4

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to