All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Romanov <blueboar2@gmail.com>
To: linux-scsi@vger.kernel.org
Subject: Patch for /drivers/scsi/fnic/vnic_dev.c file
Date: Mon, 16 Mar 2015 09:22:10 +0500	[thread overview]
Message-ID: <CAKx5OMZJUz+amr75A0v-oG6nycnasBqXNzNE9zHyUowJN-xatA@mail.gmail.com> (raw)

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)

                 reply	other threads:[~2015-03-16  4:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKx5OMZJUz+amr75A0v-oG6nycnasBqXNzNE9zHyUowJN-xatA@mail.gmail.com \
    --to=blueboar2@gmail.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.