* [PATCH]: Definition for loglevel in KERN_OOPS
@ 2013-05-29 0:00 Christopher Sacchi
2013-05-29 0:11 ` Valdis.Kletnieks
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Sacchi @ 2013-05-29 0:00 UTC (permalink / raw)
To: linux-kernel
This patch is for linux-3.10-rc2 and adds the definition for
KERN_OOPS (it can be used for whenever kernel oops occur) in
<linux/kern_loglevel.h> for <linux/printk.h>. It is below the
double-dashes.
--
Signed-off-by: Christopher P. Sacchi <christophersacchi@gmail.com>
--- include/linux/kern_levels.h 2013-05-20 17:38.000000000 -0400
+++ include/linux/kern_levels.h 2013-05-28 18:24:22.416100843 -0400
@@ -12,7 +12,7 @@
#define KERN_NOTICE KERN_SOH "5" /* normal but
significant condition */
#define KERN_INFO KERN_SOH "6" /* informational */
#define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
-
+#define KERN_OOPS KERN_SOH "2" /* kernel oops condition */
#define KERN_DEFAULT KERN_SOH "d" /* the default kernel
loglevel */
/*
--
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH]: Definition for loglevel in KERN_OOPS
2013-05-29 0:00 [PATCH]: Definition for loglevel in KERN_OOPS Christopher Sacchi
@ 2013-05-29 0:11 ` Valdis.Kletnieks
0 siblings, 0 replies; 2+ messages in thread
From: Valdis.Kletnieks @ 2013-05-29 0:11 UTC (permalink / raw)
To: Christopher Sacchi; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 713 bytes --]
On Tue, 28 May 2013 20:00:45 -0400, Christopher Sacchi said:
> This patch is for linux-3.10-rc2 and adds the definition for
> KERN_OOPS (it can be used for whenever kernel oops occur) in
> <linux/kern_loglevel.h> for <linux/printk.h>. It is below the
> double-dashes.
OK, I'll bite.
1) Where in the kernel will this actually get used?
2) Are there any matching patches for userspace tools like syslog
to make it useful?
3) Was it intenional that you added this:
+#define KERN_OOPS KERN_SOH "2" /* kernel oops condition */
instead of
+#define KERN_OOPS KERN_CRIT
4) How does a syslog daemon distringuish between KERN_CRIT and KERN_OOPS?
In other words - why do we need this patch?
[-- Attachment #2: Type: application/pgp-signature, Size: 865 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-29 0:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 0:00 [PATCH]: Definition for loglevel in KERN_OOPS Christopher Sacchi
2013-05-29 0:11 ` Valdis.Kletnieks
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.