projects
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bug: when !CONFIG_BUG, make WARN call no_printk to check format and args
[linux.git]
/
include
/
asm-generic
/
bug.h
diff --git
a/include/asm-generic/bug.h
b/include/asm-generic/bug.h
index 2d54d8df7bd1896eef1b5d30f20beff323884cf3..a97fa11aaf41990a62cb5955510c8f77c48db5a1 100644
(file)
--- a/
include/asm-generic/bug.h
+++ b/
include/asm-generic/bug.h
@@
-155,6
+155,7
@@
extern void warn_slowpath_null(const char *file, const int line);
#ifndef WARN
#define WARN(condition, format...) ({ \
int __ret_warn_on = !!(condition); \
+ no_printk(format); \
unlikely(__ret_warn_on); \
})
#endif