From: Robert Love Date: Sat, 11 Feb 2012 01:17:59 +0000 (-0800) Subject: [SCSI] libfcoe: Don't KERN_ERR on netdev notification X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b99fbf6a4e96ecacadf0f4868942774e0d64a648;p=linux-beck.git [SCSI] libfcoe: Don't KERN_ERR on netdev notification This is more of a debug statement. As a KERN_ERR we generate log entries anytime any netdev goes up or down, so when booting there are notification log entries for all system interfaces including 'lo'. This is too much. Let's just log when necessary. Signed-off-by: Robert Love Tested-by: Ross Brattain Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/fcoe/fcoe_transport.c b/drivers/scsi/fcoe/fcoe_transport.c index bd97b2273f20..0897be0ad7b6 100644 --- a/drivers/scsi/fcoe/fcoe_transport.c +++ b/drivers/scsi/fcoe/fcoe_transport.c @@ -620,8 +620,8 @@ static int libfcoe_device_notification(struct notifier_block *notifier, switch (event) { case NETDEV_UNREGISTER: - printk(KERN_ERR "libfcoe_device_notification: NETDEV_UNREGISTER %s\n", - netdev->name); + LIBFCOE_TRANSPORT_DBG("NETDEV_UNREGISTER %s\n", + netdev->name); fcoe_del_netdev_mapping(netdev); break; }