From: Borislav Petkov Date: Fri, 28 Sep 2012 14:22:26 +0000 (+0200) Subject: iommu/amd: Fix features reporting X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=500c25edda62a5d39c4d3b345c2e229a3f9d26be;p=openwrt%2Fstaging%2Fblogic.git iommu/amd: Fix features reporting When the AMD IOMMU doesn't have extended features, an empty line gets issued in dmesg like so: [ 3.061417] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40 [ 3.066757] <--- [ 3.068294] pci 0000:00:00.2: irq 72 for MSI/MSI-X [ 3.081213] AMD-Vi: Lazy IO/TLB flushing enabled Fix it. Signed-off-by: Borislav Petkov Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index 577669fece85..1772b3cbebf4 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c @@ -1114,8 +1114,8 @@ static void print_iommu_info(void) if (iommu_feature(iommu, (1ULL << i))) pr_cont(" %s", feat_str[i]); } - } pr_cont("\n"); + } } }