Messages in this thread | | | From | Joe Perches <> | Subject | [PATCH 0/7] printk: add pr_<level>_once, guard print_hex_dump | Date | Sun, 5 Dec 2010 21:44:14 -0800 |
| |
There are many uses of printk_once(KERN_<level>. Add pr_<level>_once macros to avoid printk_once(KERN_<level> pr_fmt(fmt). Add an #ifdef CONFIG_PRINTK for print_hex_dump and static inline void functions for the #else cases to reduce embedded code size. Neaten and organize the rest of the code.
Joe Perches (7): include/linux/printk.h: Move console functions and variables together include/linux/printk.h: Use space after #define include/linux/printk.h: Use and neaten no_printk include/linux/printk.h: Add pr_<level>_once macros include/linux/printk.h lib/hexdump.c: Neatening and add CONFIG_PRINTK guard include/linux/printk.h: Organize printk_ratelimited macros include/linux/printk.h: Use tab not spaces for indent
include/linux/printk.h | 247 +++++++++++++++++++++++++++++------------------- lib/hexdump.c | 2 + 2 files changed, 152 insertions(+), 97 deletions(-)
-- 1.7.3.2.245.g03276.dirty
| |