login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
26
Re: [PATCH 1/2] Make lib/bug.c WARN implementation match the kernel/panic.c one
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Kirill A. Shutemov
Subject:
Re: [PATCH 1/2] Make lib/bug.c WARN implementation match the kernel/panic.c one
Date: Saturday, June 26, 2010 - 12:54 pm
On Sun, Jun 27, 2010 at 05:10:59AM +1000, Anton Blanchard wrote:
quoted text
> > There are a few issues with the exception based WARN implementation in > lib/bug.c: > > - Inconsistent printk flags. The "cut here" line is printed at KERN_EMERG, so > the console and all logged in users see the single line: > > ------------[ cut here ]------------ > > for each WARN. Fix this so we print everything at KERN_WARNING to match the > kernel/panic.c version. > > - The lib/bug.c WARN would print "Badness at". Change it to match the > kernel/panic.c version which prints "WARNING: at". > > - Print the list of modules, similar to kernel/panic.c of modules, similar to > kernel/panic.c > > Signed-off-by: Anton Blanchard <anton@samba.org> > --- > > Index: linux-2.6/lib/bug.c > =================================================================== > --- linux-2.6.orig/lib/bug.c 2010-06-26 06:09:59.000000000 +1000 > +++ linux-2.6/lib/bug.c 2010-06-26 06:24:28.000000000 +1000 > @@ -136,8 +136,6 @@ enum bug_trap_type report_bug(unsigned l > > bug = find_bug(bugaddr); > > - printk(KERN_EMERG "------------[ cut here ]------------\n"); > - > file = NULL; > line = 0; > warning = 0; > @@ -156,19 +154,24 @@ enum bug_trap_type report_bug(unsigned l > > if (warning) { > /* this is a WARN_ON rather than BUG/BUG_ON */ > + printk(KERN_WARNING "------------[ cut here ]------------\n"); > + > if (file) > - printk(KERN_ERR "Badness at %s:%u\n", > + printk(KERN_WARNING "WARNING: at %s:%u\n", > file, line); > else > - printk(KERN_ERR "Badness at %p " > + printk(KERN_WARNING "WARNING: at %p " > "[verbose debug info unavailable]\n", > (void *)bugaddr); > > + print_modules(); > show_regs(regs); > add_taint(BUG_GET_TAINT(bug)); > return BUG_TRAP_TYPE_WARN; > } > > + printk(KERN_EMERG "------------[ cut here ]------------\n"); > +
Hm... Why do you use KERN_EMERG here?
quoted text
> if (file) > printk(KERN_CRIT "kernel BUG at %s:%u!\n", > file, line); > -- > 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/
-- Kirill A. Shutemov --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] Make lib/bug.c WARN implementation match the k ...
, Anton Blanchard
, (Sat Jun 26, 12:10 pm)
Re: [PATCH 1/2] Make lib/bug.c WARN implementation match t ...
, Kirill A. Shutemov
, (Sat Jun 26, 12:54 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Adrian Bunk
[RFC: 2.6 patch] remove the broken SUN_AURORA driver
David Howells
Re: [PATCH 5/5]bluetooth:hci_bcsp Fix operation on 'bcsp->msgq_txseq' may be un...
Francis Moreau
Re: Disk geometry from /sys
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Christoph Lameter
Re: [bug] SLUB + mm/slab.c boot crash in -rc9
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Lynn Lin
Re: clearcase migration to git
Petko Manolov
git and binary files
git-commits-head
:
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
tracing: Simplify trace_option_write()
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Marcin
Re: 4.6 reboots x336 ibm server(s)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate