From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C6F134404F; Wed, 12 Jun 2024 17:16:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA2F142ECA; Wed, 12 Jun 2024 17:05:37 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 5028542EA7 for ; Wed, 12 Jun 2024 17:05:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204729; x=1749740729; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qVizsADlunKmADS/n+9wXqNcmsuPm5/aJC9i2T+X1is=; b=S+R29cpTQKrOldDxl8ibpgHcVUoI82IR5yyhe105dJTV2UIEXPAQtKxA NRfLa4DtQBRBPhuLg9k84OjxA5qWjcLZBpyh2w8KQvXMW4PBC/ph4WLgF hgXWfZ78QrtWaefy4HgAyrz56vvwAkuzTjaJ2DGTNUGCvzwgBt4JlGM4w ocDIOR4PXPZ2u/9wVIyefQPq6AfocnMrioLSoTwaWsOWTEpIc0l1l1RH0 ROent8gvy2kwfhL/M4DMgP+YjMo0vaLa6cr4pPy+1nLzDkOC122jby4Xa N3uPEC6a42RJ2b7WajPMJo5F2sy00G9SKx8AjqiKS+YNt2Sm3rEs1SfUs g==; X-CSE-ConnectionGUID: EcWo7RKyTFSrbzZ2K4UNQw== X-CSE-MsgGUID: u0f4vuU+SXOdh1E5IxRlVg== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459679" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459679" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:05:28 -0700 X-CSE-ConnectionGUID: Ko4M72P3S26Qjwhp4RHldw== X-CSE-MsgGUID: 5RBq5tuFQimXZAAK+c2HuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925552" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:05:27 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Waldemar Dworakowski Subject: [PATCH v2 079/148] net/ice/base: ignore snprintf return value Date: Wed, 12 Jun 2024 16:01:13 +0100 Message-ID: <3189c8c84d6aafdcabb5c25bbb1fd1a81561840e.1718204528.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Ian Stokes Certain compilation targets were generating compile errors due to snprintf return value not being checked. Fix it by ignoring the return value explicitly. Signed-off-by: Waldemar Dworakowski Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 82783cfecd..891b7f0aa8 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -876,7 +876,7 @@ void ice_print_rollback_msg(struct ice_hw *hw) orom = &hw->flash.orom; nvm = &hw->flash.nvm; - SNPRINTF(nvm_str, sizeof(nvm_str), "%x.%02x 0x%x %d.%d.%d", + (void)SNPRINTF(nvm_str, sizeof(nvm_str), "%x.%02x 0x%x %d.%d.%d", nvm->major, nvm->minor, nvm->eetrack, orom->major, orom->build, orom->patch); ice_warn(hw, -- 2.43.0