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 BBF8E454EF; Tue, 25 Jun 2024 13:22:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1849C42F08; Tue, 25 Jun 2024 13:18:09 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id E5B2C42C24 for ; Tue, 25 Jun 2024 13:16:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314215; x=1750850215; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8ITD9Nm3zmo/wKmJt0vOZt9n1KIMN6y1UGFJvllcLXA=; b=ewW7IG1aLsN9EIuFZCgmOdliqq1LfhmwjOTjHEUU5SwLE6ap8s+/+n5Z Nj/KE7gbdnZi5QLdULffVkrLTEjtmbmL48S+MtuHPB77aFe2hqjZ911w+ S7YfnFgJcgIWdWCw8wWS+br3QmTKIsw2T1qfET8+MmnNjZ5PGvzesv5et xzyUMD9gh12g9iHOhVeZ/Qk9ywTVZnMBiV30aV9iM+FtaugDQGBbzPxDP s3Po2t0KUJpH7jKVhoF2tfcCz2x8dHSGfGbYlSfqmDxr47OuRQujFRQVp n0YP8vtZ+DJp2ueRD8sKPBpEeAu75l/oIGW1vlfKtlVRtSrHPznOUakQS g==; X-CSE-ConnectionGUID: 1oHZpHi4R0KRX5X29IVauQ== X-CSE-MsgGUID: BthiIZW/RtO2O+7GOPYj+w== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080278" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080278" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:16:39 -0700 X-CSE-ConnectionGUID: GpE64N+nTDue5fHFOoS93g== X-CSE-MsgGUID: 2cNBZ1pHRhKNXGpRZV0YMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719287" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:16:38 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Waldemar Dworakowski , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 061/129] net/ice/base: ignore snprintf return value Date: Tue, 25 Jun 2024 12:13:06 +0100 Message-ID: <5d0379a40d7dcdf56e07f57406381ade6979af06.1719313663.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