From patchwork Thu Jul 30 15:53:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 11693383 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CCEAF138A for ; Thu, 30 Jul 2020 15:53:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF5AD20838 for ; Thu, 30 Jul 2020 15:53:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729675AbgG3Pxc (ORCPT ); Thu, 30 Jul 2020 11:53:32 -0400 Received: from mga06.intel.com ([134.134.136.31]:54718 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726581AbgG3Pxc (ORCPT ); Thu, 30 Jul 2020 11:53:32 -0400 IronPort-SDR: 3L2R5IXyBM0jivuQXoKrfwTswOUt2W+vRyp6XXQH9W0PY81ATdkWRjSKmvDOmVzPzZ23aOYqsh w3f2mz7uCNmg== X-IronPort-AV: E=McAfee;i="6000,8403,9698"; a="213159408" X-IronPort-AV: E=Sophos;i="5.75,414,1589266800"; d="scan'208";a="213159408" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2020 08:53:30 -0700 IronPort-SDR: Ou7VINLVSXhmVPpy5r0ZWhVuUqxgMU0jqVsj/9Aqs8VXN0wOrp0jUkKdHq4aMrpQSKSdkPwHju Q68HnaD2fH4g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,414,1589266800"; d="scan'208";a="465288976" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga005.jf.intel.com with ESMTP; 30 Jul 2020 08:53:28 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 86DB9119; Thu, 30 Jul 2020 18:53:27 +0300 (EEST) From: Andy Shevchenko To: Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, Kalle Valo , linux-wireless@vger.kernel.org Cc: Andy Shevchenko Subject: [PATCH v1] brcmfmac: use %*ph to print small buffer Date: Thu, 30 Jul 2020 18:53:27 +0300 Message-Id: <20200730155327.40130-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Use %*ph format to print small buffer as hex string. Signed-off-by: Andy Shevchenko --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 5d99771c3f64..a305567b41d0 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -3983,10 +3983,7 @@ brcmf_cfg80211_set_pmksa(struct wiphy *wiphy, struct net_device *ndev, } brcmf_dbg(CONN, "set_pmksa - PMK bssid: %pM =\n", pmk[npmk].bssid); - for (i = 0; i < WLAN_PMKID_LEN; i += 4) - brcmf_dbg(CONN, "%02x %02x %02x %02x\n", pmk[npmk].pmkid[i], - pmk[npmk].pmkid[i + 1], pmk[npmk].pmkid[i + 2], - pmk[npmk].pmkid[i + 3]); + brcmf_dbg(CONN, "%*ph\n", WLAN_PMKID_LEN, pmk[npmk].pmkid); err = brcmf_update_pmklist(cfg, ifp);