浏览代码

ideapad-laptop: Add pr_fmt

Add pr_fmt to prefix logging messages.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Joe Perches 14 年之前
父节点
当前提交
9ab23989d3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/platform/x86/ideapad-laptop.c

+ 2 - 0
drivers/platform/x86/ideapad-laptop.c

@@ -20,6 +20,8 @@
  *  02110-1301, USA.
  *  02110-1301, USA.
  */
  */
 
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/init.h>