lkml.org 
[lkml]   [2013]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] device: Make dev_WARN/dev_WARN_ONCE print device as well as driver name
On Thu, Oct 24, 2013 at 03:42:33PM -0600, Bjorn Helgaas wrote:
> dev_WARN() and dev_WARN_ONCE() are annoying because (1) they include
> only the driver name, not the device name, and (2) they print a spurious
> newline in the middle. This results in messages like this that are less
> useful than they should be:
>
> [ 40.094995] Device pcieport
> disabling already-disabled device
>
> This patch makes them work more like dev_printk().
>
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Pretty cool, much nicer output indeed :-)

Reviewed-by: Felipe Balbi <balbi@ti.com>

--
balbi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-10-25 05:01    [W:0.039 / U:1.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site