Thread (8 messages) flat view 8 messages, 3 authors, 2016-07-28

Re: [PATCH] Input - elantech: fix debug dump of the current packet

From: Joe Perches <joe@perches.com>
Date: 2016-07-28 18:58:38
Also in: lkml

On Thu, 2016-07-28 at 11:54 -0700, Dmitry Torokhov wrote:
On Thu, Jul 28, 2016 at 11:49:57AM -0700, Joe Perches wrote:
[]
quoted
So use dev_printk(KERN_DEBUG, etc...
#define psmouse_printk(level, psmouse, format, ...)	\
	dev_printk(level,				\
		   &(psmouse)->ps2dev.serio->dev,	\
		   psmouse_fmt(format), ##__VA_ARGS__)

I want to see current protocol module in th eoutput and I do not want to
write "&(psmouse)->ps2dev.serio->dev" all the time.
There are only 2 uses of the macro.

$ git grep psmouse_printk
drivers/input/mouse/elantech.c:                 psmouse_printk(KERN_DEBUG, psmouse,             \
drivers/input/mouse/elantech.c: psmouse_printk(KERN_DEBUG, psmouse, "PS/2 packet [");
drivers/input/mouse/psmouse.h:#define psmouse_printk(level, psmouse, format, ...)       \


--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help