iommu/vt-d: Unify format of the printed messages
Subsystems (2)
PATCH 1/3 iommu/vt-d: Unify format of the printed messages
Unify format of the printed messages, i.e. replace printk(LEVEL ... ) with pr_level(...).
--- drivers/iommu/intel-iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/iommu/intel-iommu.c +1 -2
@@ -480,8 +480,7 @@ static int __init intel_iommu_setup(char *str)pr_info ("Intel-IOMMU: scalable mode supported\n" ); intel_iommu_sm =1 ; }else if (!strncmp (str,"tboot_noforce" ,13 )) { -printk (KERN_INFO -"Intel-IOMMU: not forcing on after tboot. This could expose security risk for tboot\n" ); +pr_info ("Intel-IOMMU: not forcing on after tboot. This could expose security risk for tboot\n" ); intel_iommu_tboot_noforce =1 ; }else if (!strncmp (str,"nobounce" ,8 )) {pr_info ("Intel-IOMMU: No bounce buffer. This could expose security risks of DMA attacks\n" );
Signature · 6 lines
2.26.2 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
PATCH 2/3 iommu/iova: Unify format of the printed messages
Unify format of the printed messages, i.e. replace printk(LEVEL ... ) with pr_level(...).
--- drivers/iommu/iova.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iommu/iova.c +3 -3
@@ -253,7 +253,7 @@ int iova_cache_get(void) SLAB_HWCACHE_ALIGN, NULL);if (!iova_cache) {mutex_unlock (&iova_cache_mutex); -printk (KERN_ERR "Couldn't create iova cache\n" ); +pr_err ("Couldn't create iova cache\n" );return -ENOMEM ; } }
@@ -718,8 +718,8 @@ copy_reserved_iova(struct iova_domain *from, struct iova_domain *to) new_iova =reserve_iova (to, iova->pfn_lo, iova->pfn_hi);if (!new_iova) -printk (KERN_ERR "Reserve iova range %lx@%lx failed\n" , - iova->pfn_lo, iova->pfn_lo); +pr_err ("Reserve iova range %lx@%lx failed\n" , + iova->pfn_lo, iova->pfn_lo); }spin_unlock_irqrestore (&from->iova_rbtree_lock, flags); }
Signature · 6 lines
2.26.2 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
PATCH 3/3 iommu/amd: Unify format of the printed messages
In reply to Andy ShevchenkoUnify format of the printed messages, i.e. replace printk(LEVEL ... ) with pr_level(...).
--- drivers/iommu/amd_iommu_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/iommu/amd_iommu_types.h +4 -4
@@ -395,10 +395,10 @@#define PD_IOMMUV2_MASK (1UL << 3)/* domain has gcr3 table */ extern bool amd_iommu_dump; -#define DUMP_printk(format, arg...) \ - do { \ - if (amd_iommu_dump) \ - printk(KERN_INFO "AMD-Vi: " format, ## arg); \ +#define DUMP_printk(format, arg...) \ + do { \ + if (amd_iommu_dump) \ + pr_info("AMD-Vi: " format, ## arg); \ } while(0);/* global flag if IOMMUs cache non-present entries */
Signature · 6 lines
2.26.2 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
Quoted 2 lines · Andy Shevchenko
Unify format of the printed messages, i.e. replace printk(LEVEL ... ) with
pr_level(...).
Thanks!
Quoted 12 lines
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/iommu/intel-iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/iommu/intel-iommu.c +0
-0
drivers/iommu/intel-iommu.c static int __init intel_iommu_setup(char *str) · line 486
Quoted 9 lines
drivers/iommu/intel-iommu.c +1
-2@@ -480,8 +480,7 @@ static int __init intel_iommu_setup(char *str)pr_info ("Intel-IOMMU: scalable mode supported\n" ); intel_iommu_sm =1 ; }else if (!strncmp (str,"tboot_noforce" ,13 )) { -printk (KERN_INFO -"Intel-IOMMU: not forcing on after tboot. This could expose security risk for tboot\n" ); +pr_info ("Intel-IOMMU: not forcing on after tboot. This could expose security risk for tboot\n" ); intel_iommu_tboot_noforce =1 ; }else if (!strncmp (str,"nobounce" ,8 )) {pr_info ("Intel-IOMMU: No bounce buffer. This could expose security risks of DMA attacks\n" );
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Joerg Roedel
maintainerQuoted 7 lines · Andy Shevchenko
Unify format of the printed messages, i.e. replace printk(LEVEL ... ) with
pr_level(...).Signed-off-by Andy Shevchenko <[email protected]>--- drivers/iommu/intel-iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied all, thanks.
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu