Patch for /drivers/scsi/fnic/vnic_dev.c file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am programmer from Kurgan, Russia, and this is my first attempt to
send some patch to linux kernel. Please review it, and if it is
acceptable, please commit it.

If there is some error, please, tell me, how i can solve it.

--- a/drivers/scsi/fnic/vnic_dev.c
+++ b/drivers/scsi/fnic/vnic_dev.c
@@ -500,9 +500,8 @@
     err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait);
     if (err)
         printk(KERN_ERR
-            "Can't add addr [%02x:%02x:%02x:%02x:%02x:%02x], %d\n",
-            addr[0], addr[1], addr[2], addr[3], addr[4], addr[5],
-            err);
+            "Can't add addr [%pM], %d\n",
+            addr, err);
 }

 void vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr)
@@ -518,9 +517,8 @@
     err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a0, &a1, wait);
     if (err)
         printk(KERN_ERR
-            "Can't del addr [%02x:%02x:%02x:%02x:%02x:%02x], %d\n",
-            addr[0], addr[1], addr[2], addr[3], addr[4], addr[5],
-            err);
+            "Can't del addr [%pM], %d\n",
+            addr, err);
 }

 int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux