From ea2a13de9cc4ae4d87c7d2e11ca51415023d5116 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Sun, 9 Mar 2008 16:29:24 +0100 Subject: [PATCH] --- yaml --- r: 91854 b: refs/heads/master c: 1b184cf37f5cf098f07725b483a2055e95725476 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/hid.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a21aa4c690a7..d93a0df8a1de 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 282bfd4cbcc2bbeb1a2cad1f42debd378e0b5ac9 +refs/heads/master: 1b184cf37f5cf098f07725b483a2055e95725476 diff --git a/trunk/include/linux/hid.h b/trunk/include/linux/hid.h index 5bf6282f1635..69ba58434dcb 100644 --- a/trunk/include/linux/hid.h +++ b/trunk/include/linux/hid.h @@ -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