From patchwork Mon Mar 16 04:22:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Romanov X-Patchwork-Id: 6015061 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6689E9F399 for ; Mon, 16 Mar 2015 04:22:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C16C203EB for ; Mon, 16 Mar 2015 04:22:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8FA0A20155 for ; Mon, 16 Mar 2015 04:22:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750950AbbCPEWN (ORCPT ); Mon, 16 Mar 2015 00:22:13 -0400 Received: from mail-yh0-f43.google.com ([209.85.213.43]:36707 "EHLO mail-yh0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbbCPEWN (ORCPT ); Mon, 16 Mar 2015 00:22:13 -0400 Received: by yhjf44 with SMTP id f44so13622906yhj.3 for ; Sun, 15 Mar 2015 21:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=iFKc+BLtxUn9z8+xYG6Xdy3uQt3LndW67JcMoeUAcO4=; b=GTeZ/KIXKwYmHh569fl5hIbviDo4OowyVQlKGOebdUVPEnjnNYZX3D7ZY+jRvGS5ah Uo1E3S7zf42BnvD3QVD3xGv+LAIk+4K5QyPIufeLGkBS0s+0+g7gJYh0OVxgWPXn1kRE 2OhMS6/y+Znuozx7sNztzjulN2v12C54ioSdHFQkXHihPxQLB8dI7FY5XwZhE/7DWTd9 Hx3Z3jOtzzNyTIsEi4R2vQT0htklgm+FyJYTJi4If9fc7e+T5oyEQTK8uGvxsTbEqFhO m1UQGypfeyNTy5CqfqlkXB+h+cUTK6yogQaXJhB79Y7XODNfzRLyiXrQzjKwKtfWdN7z ALQw== MIME-Version: 1.0 X-Received: by 10.170.57.70 with SMTP id 67mr60673621ykz.11.1426479730747; Sun, 15 Mar 2015 21:22:10 -0700 (PDT) Received: by 10.170.35.78 with HTTP; Sun, 15 Mar 2015 21:22:10 -0700 (PDT) Date: Mon, 16 Mar 2015 09:22:10 +0500 Message-ID: Subject: Patch for /drivers/scsi/fnic/vnic_dev.c file From: Vladimir Romanov To: linux-scsi@vger.kernel.org Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. --- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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)