Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b184cf3 authored by Jiri Slaby's avatar Jiri Slaby Committed by Jiri Kosina
Browse files

HID: make function from dbg_hid



To check paramters even if debug is disabled, convert dbg_hid
to inline function with __attribute__(format) checking.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 282bfd4c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -569,7 +569,11 @@ static inline int hid_ff_init(struct hid_device *hid) { return -1; }
#define dbg_hid_line(format, arg...) if (hid_debug) \
				printk(format, ## arg)
#else
#define dbg_hid(format, arg...) do {} while (0)
static inline int __attribute__((format(printf, 1, 2)))
dbg_hid(const char *fmt, ...)
{
	return 0;
}
#define dbg_hid_line dbg_hid
#endif