From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4BCB5A04DD for ; Thu, 19 Nov 2020 11:17:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F8BBC8CC; Thu, 19 Nov 2020 11:17:42 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 116295937; Thu, 19 Nov 2020 11:17:35 +0100 (CET) IronPort-SDR: HhhYSiuX0jZgYNexTl2W6H4xOy9yjKirJ5kpbumkLwVfqLGOhF4eB6HAKo8Lh+K8PsibZV/WdO tc2t6hd2ii/w== X-IronPort-AV: E=McAfee;i="6000,8403,9809"; a="232885239" X-IronPort-AV: E=Sophos;i="5.77,490,1596524400"; d="scan'208";a="232885239" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2020 02:17:34 -0800 IronPort-SDR: 3B63l7oAIBZUfgMW1psFS69Ik39rasMGu+QFfcEreWvc9o5gjurewL/uwVIXYcYL2KZGD4UuXy HPhXWvwSqjRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,490,1596524400"; d="scan'208";a="330887531" Received: from silpixa00400466.ir.intel.com ([10.237.213.98]) by orsmga006.jf.intel.com with ESMTP; 19 Nov 2020 02:17:31 -0800 From: Conor Walsh To: bruce.richardson@intel.com, ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com, bluca@debian.org, stuart.schacher@broadcom.com, venkatkumar.duvvuru@broadcom.com, michael.wildt@broadcom.com Cc: dev@dpdk.org, stable@dpdk.org, linglix.chen@intel.com, thomas@monjalon.net, Conor Walsh Date: Thu, 19 Nov 2020 10:17:00 +0000 Message-Id: <20201119101700.3869583-3-conor.walsh@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201119101700.3869583-1-conor.walsh@intel.com> References: <20201118181103.3865787-1-conor.walsh@intel.com> <20201119101700.3869583-1-conor.walsh@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v3 2/2] net/bnxt: fix format characters for unsigned values X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" &device requires the %u format specifer not the %d specifier, as &device is unsigned. Fixes: a46bbb57605b ("net/bnxt: update multi device design") Cc: michael.wildt@broadcom.com Signed-off-by: Conor Walsh --- drivers/net/bnxt/tf_core/tf_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/bnxt/tf_core/tf_core.c b/drivers/net/bnxt/tf_core/tf_core.c index 0f49a00256..24d49096a7 100644 --- a/drivers/net/bnxt/tf_core/tf_core.c +++ b/drivers/net/bnxt/tf_core/tf_core.c @@ -44,7 +44,7 @@ tf_open_session(struct tf *tfp, /* Verify control channel and build the beginning of session_id */ rc = sscanf(parms->ctrl_chan_name, - "%x:%x:%x.%d", + "%x:%x:%x.%u", &domain, &bus, &slot, @@ -57,7 +57,7 @@ tf_open_session(struct tf *tfp, /* Check parsing of bus/slot/device */ rc = sscanf(parms->ctrl_chan_name, - "%x:%x.%d", + "%x:%x.%u", &bus, &slot, &device); @@ -102,7 +102,7 @@ tf_attach_session(struct tf *tfp, /* Verify control channel */ rc = sscanf(parms->ctrl_chan_name, - "%x:%x:%x.%d", + "%x:%x:%x.%u", &domain, &bus, &slot, @@ -115,7 +115,7 @@ tf_attach_session(struct tf *tfp, /* Verify 'attach' channel */ rc = sscanf(parms->attach_chan_name, - "%x:%x:%x.%d", + "%x:%x:%x.%u", &domain, &bus, &slot, -- 2.25.1