lkml.org 
[lkml]   [2010]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] avoiding the same resource to be inserted
From
On Wed, Aug 25, 2010 at 2:41 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Wed, 25 Aug 2010 13:03:55 +0800 Huang Shijie <shijie8@gmail.com> wrote:
>
>> On Wed, Aug 25, 2010 at 7:46 AM, Andrew Morton
>> <akpm@linux-foundation.org> wrote:
>>
>> I think WARN_ON() is not power enough. If the CONFIG_BUG is not
>> defined, the warning message may not be printed. So I think using a
>> directly printk() here is better.
>
> No, WARN_ON() is good.  It gives us a backtrace and identifies the
> buggy code.  Only maniacs turn off CONFIG_BUG.
>

got it. Thanks a lot.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-08-25 09:05    [W:1.246 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site