diff options
author | Bjorn Helgaas | 2013-10-24 23:42:33 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-10-30 00:06:07 +0100 |
commit | 3eae13671716492f3bcde270115407185e9c69fd (patch) | |
tree | 80fb3ba611ad5f0b1a53f23e5d36ed3f6f59bcd0 /drivers/net/phy/mdio_bus.c | |
parent | sysfs: separate out dup filename warning into a separate function (diff) | |
download | kernel-qcow2-linux-3eae13671716492f3bcde270115407185e9c69fd.tar.gz kernel-qcow2-linux-3eae13671716492f3bcde270115407185e9c69fd.tar.xz kernel-qcow2-linux-3eae13671716492f3bcde270115407185e9c69fd.zip |
device: Make dev_WARN/dev_WARN_ONCE print device as well as driver name
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>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/phy/mdio_bus.c')
0 files changed, 0 insertions, 0 deletions