Skip to contentSkip to conversation

x86/iommu: fix a typo in printk

PATCH New Zhenzhong Duan 1 participant 1 message Nov 2, 2020 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/iommu: fix a typo in printk

In check_iommu_entries(), p->detect depends on q->detect, so q->detect should be called before p->detect.

---
 arch/x86/kernel/pci-iommu_table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/pci-iommu_table.c +1 -1
index 2e9006c1e240..c69b55436f7d 100644
@@ -68,7 +68,7 @@ void __init check_iommu_entries(struct iommu_table_entry *start,
 		q = find_dependents_of(p, finish, p);
 		if (q && q > p) {
 			printk(KERN_ERR "EXECUTION ORDER INVALID! %pS should be called before %pS!\n",
-			       p->detect, q->detect);
+			       q->detect, p->detect);
 		}
 	}
 }
Signature · 1 line
2.25.1