git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bonding: process the err returned by dev_set_allmulti properly in bond_enslave
[pandora-kernel.git]
/
include
/
linux
/
printk.h
diff --git
a/include/linux/printk.h
b/include/linux/printk.h
index
f0e22f7
..
13abc06
100644
(file)
--- a/
include/linux/printk.h
+++ b/
include/linux/printk.h
@@
-80,13
+80,13
@@
struct va_format {
/*
* Dummy printk for disabled debugging statements to use whilst maintaining
/*
* Dummy printk for disabled debugging statements to use whilst maintaining
- * gcc's format
and side-effect
checking.
+ * gcc's format checking.
*/
*/
-static inline __printf(1, 2)
-int no_printk(const char *fmt, ...)
-{
- return 0;
-}
+#define no_printk(fmt, ...) \
+do { \
+ if (0) \
+ printk(fmt, ##__VA_ARGS__); \
+}
while (0)
extern asmlinkage __printf(1, 2)
void early_printk(const char *fmt, ...);
extern asmlinkage __printf(1, 2)
void early_printk(const char *fmt, ...);