lkml.org 
[lkml]   [2010]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/7] printk: add pr_<level>_once, guard print_hex_dump
Date
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



\
 
 \ /
  Last update: 2010-12-06 06:47    [W:0.646 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site