Skip to contentSkip to conversation

VT-d: replace bogus gprintk()

PATCH In review Jan Beulich 2 participants 2 messages Apr 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VT-d: replace bogus gprintk()

Just like the other messages in this function this one should be issued through plain printk() - the current vCPU is irrelevant here. (Noticed while backporting to older trees, which don't have gprintk().)

xen/drivers/passthrough/vtd/iommu.c +2 -2
@@ -858,8 +858,8 @@ static int iommu_page_fault_do_one(struc
         break;
     }
 
-    gprintk(XENLOG_G_WARNING VTDPREFIX, "%s: reason %02x - %s\n",
-            kind, fault_reason, reason);
+    printk(XENLOG_G_WARNING VTDPREFIX "%s: reason %02x - %s\n",
+           kind, fault_reason, reason);
 
     if ( iommu_verbose && fault_type == DMA_REMAP )
         print_vtd_entries(iommu, PCI_BUS(source_id), PCI_DEVFN2(source_id),

VT-d: replace bogus gprintk()

Just like the other messages in this function this one should be issued through plain printk() - the current vCPU is irrelevant here. (Noticed while backporting to older trees, which don't have gprintk().)

xen/drivers/passthrough/vtd/iommu.c +2 -2
@@ -858,8 +858,8 @@ static int iommu_page_fault_do_one(struc
         break;
     }
 
-    gprintk(XENLOG_G_WARNING VTDPREFIX, "%s: reason %02x - %s\n",
-            kind, fault_reason, reason);
+    printk(XENLOG_G_WARNING VTDPREFIX "%s: reason %02x - %s\n",
+           kind, fault_reason, reason);
 
     if ( iommu_verbose && fault_type == DMA_REMAP )
         print_vtd_entries(iommu, PCI_BUS(source_id), PCI_DEVFN2(source_id),

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines

From: Jan Beulich [mailto:[email protected]]
Sent: Tuesday, April 21, 2015 3:31 PM

Just like the other messages in this function this one should be issued through plain printk() - the current vCPU is irrelevant here. (Noticed while backporting to older trees, which don't have gprintk().)

Quoted 17 lines
xen/drivers/passthrough/vtd/iommu.c +2 -2
@@ -858,8 +858,8 @@ static int iommu_page_fault_do_one(struc
         break;
     }
 
-    gprintk(XENLOG_G_WARNING VTDPREFIX, "%s: reason %02x - %s\n",
-            kind, fault_reason, reason);
+    printk(XENLOG_G_WARNING VTDPREFIX "%s: reason %02x - %s\n",
+           kind, fault_reason, reason);
 
     if ( iommu_verbose && fault_type == DMA_REMAP )
         print_vtd_entries(iommu, PCI_BUS(source_id),

PCI_DEVFN2(source_id),