[SCSI] libfcoe: Don't KERN_ERR on netdev notification
authorRobert Love <robert.w.love@intel.com>
Sat, 11 Feb 2012 01:17:59 +0000 (17:17 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 15:19:49 +0000 (09:19 -0600)
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 <robert.w.love@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fcoe/fcoe_transport.c

index bd97b2273f20bc545c4d97aa742294777bb6fc49..0897be0ad7b635a7174e1bfc6fd474ae6f48caa5 100644 (file)
@@ -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;
        }