intel-iommu: Make "Unknown DMAR structure" message more informative
authorRoland Dreier <rdreier@cisco.com>
Thu, 24 Sep 2009 00:01:29 +0000 (01:01 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 24 Sep 2009 00:31:27 +0000 (17:31 -0700)
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.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/dmar.c

index 14bbaa17e2ca8ec8729eda3702c6883865558406..d199bcabed7594c114b38a238b514fbbfd3c3449 100644 (file)
@@ -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;
                }