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 ADEC745500; Wed, 26 Jun 2024 13:59:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B71ED433C2; Wed, 26 Jun 2024 13:55:48 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id A458E42E95 for ; Wed, 26 Jun 2024 13:44:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402249; x=1750938249; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8ITD9Nm3zmo/wKmJt0vOZt9n1KIMN6y1UGFJvllcLXA=; b=f0wyvCsvjXMce1YWuimfyJeI2H5eFZrudC6Ll+zg+J2Zu+3Eq4XmEBez k0N5FCXrYMp034pb5FJqxofQgk8UF3UorSaKHj1HtBW8zKxKSZy2VJAgi aI4btCZpWyWxBZAJszgst0AF/+I/tQCzympNgrmcv83DoYtOlpRFc/BwR 5mKC2e76U00Z9n4A75PL8y8hHjU4KwGNhjrd9HGedY7IJGCcm5ZU1FVd2 99ZizbboWKA/B/2ii3zAL137CWmf7YcVGPVsFLDNy5eeWFERum174bIbA ZMs06YO5Wtgzw1AS9N9Q5bwmSBLlUWA6TCW3vgbQFy8jOSAzE+tWg4q3W A==; X-CSE-ConnectionGUID: Vspe9dObRMeLJQmY/mjeKQ== X-CSE-MsgGUID: 7xdtw3ciR6SqqmkbJnETWA== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979405" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979405" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:44:09 -0700 X-CSE-ConnectionGUID: Cq9d0cihSfOK5338CrGVVA== X-CSE-MsgGUID: Slf3Rl6+RqipjTXln0QlwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43873873" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:44:08 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Waldemar Dworakowski , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 041/103] net/ice/base: ignore snprintf return value Date: Wed, 26 Jun 2024 12:41:29 +0100 Message-ID: <0f1fd67e2b2dd7824efd184645cfe69a1739fba6.1719401848.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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: Waldemar Dworakowski 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 b81d3a15a0..ce2c3f878c 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -975,7 +975,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