[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100824234132.a0f1cec3.akpm@linux-foundation.org>
Date: Tue, 24 Aug 2010 23:41:32 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Huang Shijie <shijie8@...il.com>
Cc: linux-kernel@...r.kernel.org,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Bjorn Helgaas <bjorn.helgaas@...com>
Subject: Re: [PATCH] avoiding the same resource to be inserted
On Wed, 25 Aug 2010 13:03:55 +0800 Huang Shijie <shijie8@...il.com> wrote:
> On Wed, Aug 25, 2010 at 7:46 AM, Andrew Morton
> <akpm@...ux-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.
--
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