[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1345486393.3252.3.camel@joe2Laptop>
Date: Mon, 20 Aug 2012 11:13:13 -0700
From: Joe Perches <joe@...ches.com>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, Jim Cromie <jim.cromie@...il.com>,
Jason Baron <jbaron@...hat.com>,
Kay Sievers <kay.sievers@...y.org>
Subject: Re: [PATCH] drivers-core: beware dev_printk() from printing nonsense
On Mon, 2012-08-20 at 18:53 +0200, Sebastian Andrzej Siewior wrote:
> On 08/20/2012 05:26 PM, Greg Kroah-Hartman wrote:
> >> skip:
> >> - if (level[3])
> >> + if (level[sizeof(KERN_ERR) - 1])
> >
> > This has already been fixed in my driver-core tree and will go to Linus
> > in a few hours.
>
> Ah. So I'm too late. Care to send a patch which replace [2] with the
> sizeof() operator like above?
Nope, the better fix is to use a different mechanism.
See commit acc8fa41ad31c5
("printk: add generic functions to find KERN_<LEVEL> headers")
and
commit 04d2c8c83d0e3a
("printk: convert the format for KERN_<LEVEL> to a 2 byte pattern")
I'll submit that "better fix" shortly after Greg's update has
been pulled/merged by Linus.
cheers, Joe
--
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