lkml.org 
[lkml]   [2008]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 3/4] cpu alloc: The allocator
FromPekka Enberg <>
DateFri, 19 Sep 2008 17:35:08 +0300
On Fri, 2008-09-19 at 09:27 -0500, Christoph Lameter wrote:
> Pekka Enberg wrote:
> > On Fri, 2008-09-19 at 08:11 -0500, Christoph Lameter wrote:
> >> I thought we could handle early boot panics with early_printk?
> >
> > Sure, but *if* we can limp along it's usually much nicer to debug
> > WARN_ONs that trigger during early boot. But anyway, I'm fine with
> > either way.
>
> How would you do this?
>
> if (condition) {
> WARN_ON(1);
> return NULL;
> }
>
> or do we have a macro for this situation.
>
> if (WARN(condition))
> return NULL;

if (WARN_ON(condition))
return NULL;
or am I missing something here?



\
 
 \ /
  Last update: 2008-09-19 16:37    [from the cache]
©2003-2010