浏览代码

powerpc/mm/radix: Add pr_fmt() to pgtable-radix.c

Make the printks look a bit nicer by adding a prefix.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Michael Ellerman 8 年之前
父节点
当前提交
bd350f7121
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/powerpc/mm/pgtable-radix.c

+ 4 - 0
arch/powerpc/mm/pgtable-radix.c

@@ -8,6 +8,10 @@
  * as published by the Free Software Foundation; either version
  * as published by the Free Software Foundation; either version
  * 2 of the License, or (at your option) any later version.
  * 2 of the License, or (at your option) any later version.
  */
  */
+
+#define pr_fmt(fmt) "radix-mmu: " fmt
+
+#include <linux/kernel.h>
 #include <linux/sched/mm.h>
 #include <linux/sched/mm.h>
 #include <linux/memblock.h>
 #include <linux/memblock.h>
 #include <linux/of_fdt.h>
 #include <linux/of_fdt.h>