]> git.baikalelectronics.ru Git - kernel.git/commit
include/linux/printk.h: move console functions and variables together
authorJoe Perches <joe@perches.com>
Thu, 13 Jan 2011 00:59:43 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:09 +0000 (08:03 -0800)
commitb5d52e81ac5cde57b50e24efd3300b8db2b82a5c
treefe163341b5c80ea2f597095c609eec959ee3e728
parent9fc7d800cbb05e5538186105fc3cd07261a2b04c
include/linux/printk.h: move console functions and variables together

There are many uses of printk_once(KERN_<level>, so 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.

This patch:

Move console functions and variables together.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/printk.h