Skip to contentSkip to conversation

intel-iommu: Make "Unknown DMAR structure" message more informative

PATCH New Roland Dreier 1 participant 1 message Sep 24, 2009 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel-iommu: Make "Unknown DMAR structure" message more informative

We might as well print the type of the DMAR structure we don't know how to handle when skipping it. Then someone getting this message has a chance of telling whether the structure is just bogus, or if there really is something valid that the kernel doesn't know how to handle.

---
 drivers/pci/dmar.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/pci/dmar.c +2 -1
index 14bbaa1..d199bca 100644
@@ -461,7 +461,8 @@ parse_dmar_table(void)
 			break;
 		default:
 			printk(KERN_WARNING PREFIX
-				"Unknown DMAR structure type\n");
+				"Unknown DMAR structure type %d\n",
+				entry_header->type);
 			ret = 0; /* for forward compatibility */
 			break;
 		}