Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2064821ybg; Thu, 30 Jul 2020 09:27:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxQtfyMzvz7yXJC91yY+dVvgIB3YOgIdfiRSLhU7+MBauBnp+C6fhTQfY974mHzDvy8aso X-Received: by 2002:aa7:cf1a:: with SMTP id a26mr3452939edy.51.1596126425353; Thu, 30 Jul 2020 09:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596126425; cv=none; d=google.com; s=arc-20160816; b=eyUIBJCFEOsp18qwtEHud4j9c77F6eQT7SM5ipBpo7D5ryMd5TcwSXQujRpOemyyIQ +A5ZhzkhITFQhVC0LhKYbScErZaSwhypPb4j5pbymvObJsU+089onmYlzf28OPPvo1j1 cAdRjD1EnxClAEvTnM47br5JOqebYW2Erw4xIojG8Y9/6yjiuq2tYORjgoXH8m6kK+Ih ZBLDdUCTKxAa5oAvXNAftYoKTlNNZdlatcss/PxfiufzU+mC1NtcvJFfU6eg23EHBLGm uibvELESclZphwqjM61nGntQ93vsmd+JHpDCluaLOV3JPCUm7zVqtTFsxppHDnoguZi/ +ISg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=4VfKsqMSgIAjlvStX7Jque18AnWNCZTbZpiyXiqEaxI=; b=MXtFUSbzZ06HEsFlYrypk66MH8xRFF9NdN+TVJnZoXQwZcQEbMDa8T9lxkeDdS8NYt 7+aoyFQs3yiJFgzAYGYeNLnfiIl3BtXORM1fk5ZSfNjiuKluWftqZK+LZ4KU8mSL0KHT BRIO9zM/MDpNnqqFHjtqJyISHMmqWkIAvZBB3QrStUgcrGue2Vr9kExU9h6P9jR4L/SW oMWPCZjc1sJunJP4GtrtuP2vUDsApVN92eo4wq5BANdyuoc1Jq/AkNsOcK1t8vudA/Fr RrexgzTaxRMQnfgVMSL7JZPwgcx9qWfiLaRmaGhXEqCaFNqHrA0MxmS/yFOhM2BwIsBY J6sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=FhJzlXZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si3635013ejp.201.2020.07.30.09.26.42; Thu, 30 Jul 2020 09:27:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=FhJzlXZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729945AbgG3Q0f (ORCPT + 99 others); Thu, 30 Jul 2020 12:26:35 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:58045 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbgG3Q0f (ORCPT ); Thu, 30 Jul 2020 12:26:35 -0400 Date: Thu, 30 Jul 2020 16:26:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1596126392; bh=4VfKsqMSgIAjlvStX7Jque18AnWNCZTbZpiyXiqEaxI=; h=Date:To:From:Cc:Reply-To:Subject:From; b=FhJzlXZlKq11kMhH4Y6se2vV9kwMBD3hYJ/fgdVUSz5jZuFLrfH7T7aX8cUiBtO9e FNJEbVb92/V9XWH7MBAfXFRezGXmJwuyvDQfY/J67nkfDwS3rxC+UxEhbs3RgAH3c3 +WZ7K9rGXvptUCFODjwng+FuoXGO79nZ0xULHgQN+p9tyIznXyBQmLNEVtPeEGT6JK YdwVYP0SBUAkBcW8KkQcP0pd286mhVr/hj4PrBgP8TClOUp6ainoQyBg2x6OpNWdbk wnpguCFTIg9czGaip6v3TB0wQdWrBNZAPCkFFWF2TviV9S+HQZY4YEKh0BS0O1Nc3K Yb5i9vZF2rUAw== To: Andy Shevchenko From: Alexander Lobakin Cc: Alexander Lobakin , Ariel Elior , GR-everest-linux-l2@marvell.com, netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: Re: [PATCH v1] qed: Use %pM format specifier for MAC addresses Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko Date: Thu, 30 Jul 2020 18:59:20 +0300 > Convert to %pM instead of using custom code. >=20 > Signed-off-by: Andy Shevchenko > --- > drivers/net/ethernet/qlogic/qed/qed_mcp.c | 5 ++--- > drivers/net/ethernet/qlogic/qed/qed_sriov.c | 6 ++---- > 2 files changed, 4 insertions(+), 7 deletions(-) Thanks! Acked-by: Alexander Lobakin > diff --git a/drivers/net/ethernet/qlogic/qed/qed_mcp.c b/drivers/net/ethe= rnet/qlogic/qed/qed_mcp.c > index 988d84564849..5be08f83e0aa 100644 > --- a/drivers/net/ethernet/qlogic/qed/qed_mcp.c > +++ b/drivers/net/ethernet/qlogic/qed/qed_mcp.c > @@ -2518,11 +2518,10 @@ int qed_mcp_fill_shmem_func_info(struct qed_hwfn = *p_hwfn, > =09} > =20 > =09DP_VERBOSE(p_hwfn, (QED_MSG_SP | NETIF_MSG_IFUP), > -=09=09 "Read configuration from shmem: pause_on_host %02x protocol %02= x BW [%02x - %02x] MAC %02x:%02x:%02x:%02x:%02x:%02x wwn port %llx node %ll= x ovlan %04x wol %02x\n", > +=09=09 "Read configuration from shmem: pause_on_host %02x protocol %02= x BW [%02x - %02x] MAC %pM wwn port %llx node %llx ovlan %04x wol %02x\n", > =09=09info->pause_on_host, info->protocol, > =09=09info->bandwidth_min, info->bandwidth_max, > -=09=09info->mac[0], info->mac[1], info->mac[2], > -=09=09info->mac[3], info->mac[4], info->mac[5], > +=09=09info->mac, > =09=09info->wwn_port, info->wwn_node, > =09=09info->ovlan, (u8)p_hwfn->hw_info.b_wol_support); > =20 > diff --git a/drivers/net/ethernet/qlogic/qed/qed_sriov.c b/drivers/net/et= hernet/qlogic/qed/qed_sriov.c > index aa215eeeb4df..9489089706fe 100644 > --- a/drivers/net/ethernet/qlogic/qed/qed_sriov.c > +++ b/drivers/net/ethernet/qlogic/qed/qed_sriov.c > @@ -3276,14 +3276,12 @@ static void qed_iov_vf_mbx_ucast_filter(struct qe= d_hwfn *p_hwfn, > =20 > =09DP_VERBOSE(p_hwfn, > =09=09 QED_MSG_IOV, > -=09=09 "VF[%d]: opcode 0x%02x type 0x%02x [%s %s] [vport 0x%02x] MAC %= 02x:%02x:%02x:%02x:%02x:%02x, vlan 0x%04x\n", > +=09=09 "VF[%d]: opcode 0x%02x type 0x%02x [%s %s] [vport 0x%02x] MAC %= pM, vlan 0x%04x\n", > =09=09 vf->abs_vf_id, params.opcode, params.type, > =09=09 params.is_rx_filter ? "RX" : "", > =09=09 params.is_tx_filter ? "TX" : "", > =09=09 params.vport_to_add_to, > -=09=09 params.mac[0], params.mac[1], > -=09=09 params.mac[2], params.mac[3], > -=09=09 params.mac[4], params.mac[5], params.vlan); > +=09=09 params.mac, params.vlan); > =20 > =09if (!vf->vport_instance) { > =09=09DP_VERBOSE(p_hwfn, > --=20 > 2.27.0 Al