[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABQQNFGUatf9ASn=SMDy6L1z1qQLjHeKevxNYhKA1+8wrORDXA@mail.gmail.com>
Date: Tue, 28 May 2013 18:13:53 -0400
From: Christopher Sacchi <christophersacchi@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH]: Kernel Oops Priority Level in <linux/printk.h>
I mean before the two #endifs at the end.
On Tue, May 28, 2013 at 6:09 PM, Christopher Sacchi
<christophersacchi@...il.com> wrote:
> Note: There's a space after #endif at the end.
>
> On Tue, May 28, 2013 at 6:08 PM, Christopher Sacchi
> <christophersacchi@...il.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@...il.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
>> --
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists