Skip to content

Commit

Permalink
intel-iommu: Make "Unknown DMAR structure" message more informative
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier authored and David Woodhouse committed Sep 24, 2009
1 parent b09a75f commit 4de75cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pci/dmar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4de75cf

Please sign in to comment.