Thread (8 messages) 8 messages, 5 authors, 2009-05-13

Re: [PATCH] hid: add force feedback support for SmartJoy PLUS PS2/USB adapter

From: Greg KH <hidden>
Date: 2009-05-11 22:05:31

On Tue, May 12, 2009 at 12:02:27AM +0200, Jiri Slaby wrote:
On 05/11/2009 11:46 PM, Greg KH wrote:
quoted
On Mon, May 11, 2009 at 05:48:55PM +0200, Jiri Slaby wrote:
quoted
Here comes some of my comments to the rest:

+#define debug(format, arg...) pr_debug("hid-sjoyff: " format "\n" , ## arg)

Define pr_fmt instead of this.
No, please use dev_dbg() instead of creating a new macro.
No, unfortunately there is no struct device available in the two
functions he uses this macro in.

It should look like

#define pr_fmt(fmt) "hid-sjoyff: " fmt "\n"

and then use pr_debug as usual.

In other places he correctly uses dev_* stuff.
Oh, ok, yes, that's correct, sorry for not looking closer.

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help