* [PATCH] introduce pr_cont macro v2
@ 2009-02-27 19:45 Cyrill Gorcunov
0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2009-02-27 19:45 UTC (permalink / raw)
To: Andrew Morton, Ingo Molnar, H. Peter Anvin; +Cc: Harvey Harrison, LKML
We cover all log-levels by pr_... macros except
KERN_CONT one. Add it for convenience.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
I think start printing with some pr_... macro
and continue with printk(KERN_CONT ...) look
not that clear -- better to continue with
same pr_... slogan.
It's written in same form as other (same aimed) macros have,
ie 'fmt' and ##__VA_ARGS__ saved.
include/linux/kernel.h | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.git/include/linux/kernel.h
===================================================================
--- linux-2.6.git.orig/include/linux/kernel.h
+++ linux-2.6.git/include/linux/kernel.h
@@ -370,6 +370,8 @@ static inline char *pack_hex_byte(char *
printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
#define pr_info(fmt, ...) \
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
+#define pr_cont(fmt, ...) \
+ printk(KERN_CONT fmt, ##__VA_ARGS__)
/* If you are writing a driver, please use dev_dbg instead */
#if defined(DEBUG)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-27 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-27 19:45 [PATCH] introduce pr_cont macro v2 Cyrill Gorcunov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.