diff options
author | Zach Brown <zach.brown@oracle.com> | 2006-10-03 10:16:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 17:04:20 +0200 |
commit | 8b2a1fd1b394c60eaa2587716102dd5e9b4e5990 (patch) | |
tree | 6317cd01c2a758908f747f2c0b110dd40b9dc6d9 /scripts | |
parent | [PATCH] isdn: more pr_debug() fixes (diff) | |
download | linux-8b2a1fd1b394c60eaa2587716102dd5e9b4e5990.tar.xz linux-8b2a1fd1b394c60eaa2587716102dd5e9b4e5990.zip |
[PATCH] pr_debug: check pr_debug() arguments
check pr_debug() arguments
When DEBUG isn't defined pr_debug() is defined away as an empty macro. By
throwing away the arguments we allow completely incorrect code to build.
Instead let's make it an empty inline which checks arguments and mark it so gcc
can check the format specification.
This results in a seemingly insignificant code size increase. A x86-64
allyesconfig:
text data bss dec hex filename
25354768 7191098 4854720 37400586 23ab00a vmlinux.before
25354945 7191138 4854720 37400803 23ab0e3 vmlinux
Signed-off-by: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions