From 42c711c7b3ab499cb82085934ac61169eb0ddd10 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 3 Oct 2006 01:16:15 -0700 Subject: [PATCH] --- yaml --- r: 38142 b: refs/heads/master c: 8b2a1fd1b394c60eaa2587716102dd5e9b4e5990 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/kernel.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 979102afb325..d9d0418adb11 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3879b6b6a8ee39b50559b2c2dd083c557d39e0f8 +refs/heads/master: 8b2a1fd1b394c60eaa2587716102dd5e9b4e5990 diff --git a/trunk/include/linux/kernel.h b/trunk/include/linux/kernel.h index 4d00988dad03..80f39cab470a 100644 --- a/trunk/include/linux/kernel.h +++ b/trunk/include/linux/kernel.h @@ -216,8 +216,10 @@ extern void dump_stack(void); #define pr_debug(fmt,arg...) \ printk(KERN_DEBUG fmt,##arg) #else -#define pr_debug(fmt,arg...) \ - do { } while (0) +static inline int __attribute__ ((format (printf, 1, 2))) pr_debug(const char * fmt, ...) +{ + return 0; +} #endif #define pr_info(fmt,arg...) \