All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: Kernel Oops Priority Level in <linux/printk.h>
@ 2013-05-28 22:08 Christopher Sacchi
  2013-05-28 22:09 ` Christopher Sacchi
  2013-05-28 22:15 ` Joe Perches
  0 siblings, 2 replies; 4+ messages in thread
From: Christopher Sacchi @ 2013-05-28 22:08 UTC (permalink / raw)
  To: linux-kernel

Here is a patch for linux-3.10-rc2 that adds a KERN_OOPS priority
level as a handler for if a kernel oops occurs, (this priority can be
used for a message to the kernel log,) and it is applied to
linux/printk.h in the include directory. It has been checked and has 2
warnings with no errors. The patch is between the two double-dashes.



--
Signed-Off-By: Christopher P. Sacchi <christophersacchi@gmail.com>
 --- include/linux/printk.h     2013-05-28 17:38:52.030426439 -0400
+++ include/linux/printk.h  2013-05-28 17:39:21.530055578 -0400
@@ -395,4 +395,8 @@ static inline void print_hex_dump_bytes(
print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize,
                           groupsize, buf, len, ascii)
#endif /* defined(CONFIG_DYNAMIC_DEBUG) */
+
+/* Define an oops priority level. */
+#define pr_oops(fmt, ...) \
+          printk(KERN_OOPS pr_fmt(fmt), ##__VA_ARGS__)
+
#endif
--

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH]: Kernel Oops Priority Level in <linux/printk.h>
  2013-05-28 22:08 [PATCH]: Kernel Oops Priority Level in <linux/printk.h> Christopher Sacchi
@ 2013-05-28 22:09 ` Christopher Sacchi
  2013-05-28 22:13   ` Christopher Sacchi
  2013-05-28 22:15 ` Joe Perches
  1 sibling, 1 reply; 4+ messages in thread
From: Christopher Sacchi @ 2013-05-28 22:09 UTC (permalink / raw)
  To: linux-kernel

Note: There's a space after #endif at the end.

On Tue, May 28, 2013 at 6:08 PM, Christopher Sacchi
<christophersacchi@gmail.com> wrote:
> Here is a patch for linux-3.10-rc2 that adds a KERN_OOPS priority
> level as a handler for if a kernel oops occurs, (this priority can be
> used for a message to the kernel log,) and it is applied to
> linux/printk.h in the include directory. It has been checked and has 2
> warnings with no errors. The patch is between the two double-dashes.
>
>
>
> --
> Signed-Off-By: Christopher P. Sacchi <christophersacchi@gmail.com>
>  --- include/linux/printk.h     2013-05-28 17:38:52.030426439 -0400
> +++ include/linux/printk.h  2013-05-28 17:39:21.530055578 -0400
> @@ -395,4 +395,8 @@ static inline void print_hex_dump_bytes(
> print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize,
>                            groupsize, buf, len, ascii)
> #endif /* defined(CONFIG_DYNAMIC_DEBUG) */
> +
> +/* Define an oops priority level. */
> +#define pr_oops(fmt, ...) \
> +          printk(KERN_OOPS pr_fmt(fmt), ##__VA_ARGS__)
> +
> #endif
> --

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH]: Kernel Oops Priority Level in <linux/printk.h>
  2013-05-28 22:09 ` Christopher Sacchi
@ 2013-05-28 22:13   ` Christopher Sacchi
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Sacchi @ 2013-05-28 22:13 UTC (permalink / raw)
  To: linux-kernel

I mean before the two #endifs at the end.

On Tue, May 28, 2013 at 6:09 PM, Christopher Sacchi
<christophersacchi@gmail.com> wrote:
> Note: There's a space after #endif at the end.
>
> On Tue, May 28, 2013 at 6:08 PM, Christopher Sacchi
> <christophersacchi@gmail.com> wrote:
>> Here is a patch for linux-3.10-rc2 that adds a KERN_OOPS priority
>> level as a handler for if a kernel oops occurs, (this priority can be
>> used for a message to the kernel log,) and it is applied to
>> linux/printk.h in the include directory. It has been checked and has 2
>> warnings with no errors. The patch is between the two double-dashes.
>>
>>
>>
>> --
>> Signed-Off-By: Christopher P. Sacchi <christophersacchi@gmail.com>
>>  --- include/linux/printk.h     2013-05-28 17:38:52.030426439 -0400
>> +++ include/linux/printk.h  2013-05-28 17:39:21.530055578 -0400
>> @@ -395,4 +395,8 @@ static inline void print_hex_dump_bytes(
>> print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize,
>>                            groupsize, buf, len, ascii)
>> #endif /* defined(CONFIG_DYNAMIC_DEBUG) */
>> +
>> +/* Define an oops priority level. */
>> +#define pr_oops(fmt, ...) \
>> +          printk(KERN_OOPS pr_fmt(fmt), ##__VA_ARGS__)
>> +
>> #endif
>> --

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH]: Kernel Oops Priority Level in <linux/printk.h>
  2013-05-28 22:08 [PATCH]: Kernel Oops Priority Level in <linux/printk.h> Christopher Sacchi
  2013-05-28 22:09 ` Christopher Sacchi
@ 2013-05-28 22:15 ` Joe Perches
  1 sibling, 0 replies; 4+ messages in thread
From: Joe Perches @ 2013-05-28 22:15 UTC (permalink / raw)
  To: Christopher Sacchi; +Cc: linux-kernel

On Tue, 2013-05-28 at 18:08 -0400, Christopher Sacchi wrote:
> Here is a patch for linux-3.10-rc2 that adds a KERN_OOPS priority
> level as a handler for if a kernel oops occurs, (this priority can be
> used for a message to the kernel log,) and it is applied to
> linux/printk.h in the include directory. It has been checked and has 2
[]
> +++ include/linux/printk.h  2013-05-28 17:39:21.530055578 -0400
> @@ -395,4 +395,8 @@ static inline void print_hex_dump_bytes(
[]
> +/* Define an oops priority level. */
> +#define pr_oops(fmt, ...) \
> +          printk(KERN_OOPS pr_fmt(fmt), ##__VA_ARGS__)
> +
> #endif

Why?  Why not KERN_DEFAULT?
Where is KERN_OOPS #defined?



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-28 22:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 22:08 [PATCH]: Kernel Oops Priority Level in <linux/printk.h> Christopher Sacchi
2013-05-28 22:09 ` Christopher Sacchi
2013-05-28 22:13   ` Christopher Sacchi
2013-05-28 22:15 ` Joe Perches

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.