Thread (23 messages) 23 messages, 3 authors, 2016-09-25

Re: [PATCH 3/4] Input-gameport: Add the macro "pr_fmt" for module "joydump"

flat view

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2016-09-24 16:41:14
Also in: linux-input, lkml

On Sat, Sep 24, 2016 at 03:48:54PM +0200, SF Markus Elfring wrote:
quoted hunk ↗ jump to hunk
From: Markus Elfring <redacted>
Date: Sat, 24 Sep 2016 14:30:44 +0200

Add a definition for the macro "pr_fmt" so that its information can be used
for consistent message output.

Signed-off-by: Markus Elfring <redacted>
---
 drivers/input/joystick/joydump.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/input/joystick/joydump.c b/drivers/input/joystick/joydump.c
index f9f6cbe..a38f10e 100644
--- a/drivers/input/joystick/joydump.c
+++ b/drivers/input/joystick/joydump.c
@@ -27,6 +27,8 @@
  * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
Why did you split it off from the patch where you attempt to use it?
What good does this change do on its own?
 #include <linux/module.h>
 #include <linux/gameport.h>
 #include <linux/kernel.h>
-- 
2.10.0
-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help