Re: [PATCH RFC 1/4] Generic BUG handling.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Ellerman wrote:
+       printk(KERN_EMERG "------------[ cut here ]------------\n");

I'm not sure I'm big on the cut here marker.

x86 has it. I figured its more important to not change x86 output than powerpc.

i386 implements CONFIG_DEBUG_BUGVERBOSE, but x86-64 and powerpc do
not.  This should probably be made more consistent.

It looks like if you do this you _might_ be able to share struct
bug_entry, or at least have consistent members for each arch. Which
would eliminate some of the inlines you have for accessing the bug
struct.
Yeah, its a bit of a toss-up. powerpc wants to hide the warn flag somewhere, which either means having a different structure, or using the fields differently. CONFIG_DEBUG_BUGVERBOSE supporters (ie, i386) want to make the structure completely empty in the !DEBUG_BUGVERBOSE case (which doesn't currently happen).
It needed a bit of work to get going on powerpc:

Thanks. I'll try to fold all this together into a new patch when things settle down.

   J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux