lkml.org 
[lkml]   [2006]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] more helpful WARN_ON and BUG_ON messages
Jeremy Fitzhardinge wrote:

> This seems like a generally useful idea - certainly more valuable than
> storing+printing the function name.
>
> You might want to look at the BUG patches I wrote, which are currently
> in -mm. I added general machinery to allow architectures to easily
> implement BUG() efficiently (ie, with a minimal amount of BUG-related
> icache pollution). If you were to store the BUG_ON expression, it would
> be best to extend struct bug_entry and store it there - doing it in
> asm-generic BUG_ON() means you still end up with code to set up the
> printk in the mainline code path, and it also won't honour
> CONFIG_DEBUG_BUGVERBOSE being disabled.

Thanks, I missed that change... I'll look into it.

-Eric
-
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: 2006-10-23 05:21    [W:0.066 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site