Skip to contentSkip to conversation

vfio: Fix debug message compile error

PATCH Applied Alexey Kardashevskiy 3 participants 3 messages Feb 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio: Fix debug message compile error

This fixes a compiler error which occurs if DEBUG_VFIO is defined.

---
 hw/vfio/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/vfio/pci.c +1 -1
index 29caabc..cfc087a 100644
@@ -517,7 +517,7 @@ static void vfio_msi_interrupt(void *opaque)
         abort();
     }
 
-    trace_vfio_msi_interrupt(vbasedev->name, nr, msg.address, msg.data);
+    trace_vfio_msi_interrupt(vdev->vbasedev.name, nr, msg.address, msg.data);
 #endif
 
     if (vdev->interrupt == VFIO_INT_MSIX) {
Signature · 1 line
2.0.0
#1 lore raw

Hi Alexey,

Thanks for pointing that issue.

Best Regards

Eric

Quoted 21 lines · Alexey Kardashevskiy

This fixes a compiler error which occurs if DEBUG_VFIO is defined.

---
 hw/vfio/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/vfio/pci.c +1 -1
index 29caabc..cfc087a 100644
@@ -517,7 +517,7 @@ static void vfio_msi_interrupt(void *opaque)
         abort();
     }
 
-    trace_vfio_msi_interrupt(vbasedev->name, nr, msg.address, msg.data);
+    trace_vfio_msi_interrupt(vdev->vbasedev.name, nr, msg.address, msg.data);
 #endif
 
     if (vdev->interrupt == VFIO_INT_MSIX) {
#2 lore raw
In reply to Alexey Kardashevskiy
Quoted 12 lines · Alexey Kardashevskiy

This fixes a compiler error which occurs if DEBUG_VFIO is defined.

---
 hw/vfio/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/vfio/pci.c +0 -0
index 29caabc..cfc087a 100644

hw/vfio/pci.c static void vfio_msi_interrupt(void *opaque) · line 523

Quoted 8 lines
hw/vfio/pci.c +1 -1
@@ -517,7 +517,7 @@ static void vfio_msi_interrupt(void *opaque)
         abort();
     }
 
-    trace_vfio_msi_interrupt(vbasedev->name, nr, msg.address, msg.data);
+    trace_vfio_msi_interrupt(vdev->vbasedev.name, nr, msg.address, msg.data);
 #endif
 
     if (vdev->interrupt == VFIO_INT_MSIX) {

Applied, thanks!

Alex