Skip to content

Commit f15e873

Browse files
tobluxmaddy-kerneldev
authored andcommitted
powerpc/iommu: Use str_disabled_enabled() helper
Remove hard-coded strings by using the str_disabled_enabled() helper. Signed-off-by: Thorsten Blum <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent f36a281 commit f15e873

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/powerpc/kernel/iommu.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/mm.h>
1717
#include <linux/spinlock.h>
1818
#include <linux/string.h>
19+
#include <linux/string_choices.h>
1920
#include <linux/dma-mapping.h>
2021
#include <linux/bitmap.h>
2122
#include <linux/iommu-helper.h>
@@ -769,8 +770,8 @@ struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid,
769770
iommu_table_clear(tbl);
770771

771772
if (!welcomed) {
772-
printk(KERN_INFO "IOMMU table initialized, virtual merging %s\n",
773-
novmerge ? "disabled" : "enabled");
773+
pr_info("IOMMU table initialized, virtual merging %s\n",
774+
str_disabled_enabled(novmerge));
774775
welcomed = 1;
775776
}
776777

0 commit comments

Comments
 (0)