Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp91508lqf; Tue, 26 Mar 2024 15:41:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAaHc6SBHshhoWNCJIyZ2UxkZetMbv7sQFGH9z3eSwtg2cHaexEoeZW180B2UZ29bePtTRZFF3vfZZridLrro3ygd+mbjruo7x1nUV0g== X-Google-Smtp-Source: AGHT+IF/7XMryCH45kEyZOWfQLXnHjcjFEQdmshZ8hwvoyPLM38HeD+OahaQl9mLbSS8YQl9jksI X-Received: by 2002:a17:902:f542:b0:1e0:9a4a:72b5 with SMTP id h2-20020a170902f54200b001e09a4a72b5mr1329089plf.26.1711492910550; Tue, 26 Mar 2024 15:41:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711492910; cv=pass; d=google.com; s=arc-20160816; b=XEOOWzC/CaT4rX+JIaDwSBG+Hvb7T5YP7/atXmURCY0dVJ9Nfeq/vOn7kfSYTzPkUE zlXqDe/M+VN3gYAqdVRSKcx0rIxFn34qjjtORQvPjhrlpiKglLCsemMyvEjk4GLqV1+6 7IbWFGTzB1XlFRc8bjpqPkRDYFgpcRzTMyH/s9tPVeUonxIiWJjc3JgKE/3H/3FGPAgu VmqFMslgrcvwzvhq/EPTiUPnx5qN3+2jCYl0AhCue/AoTYoGKQQbV9NQMQgj7Mf6E7Z4 t84wu+ra6iRip2e6uZSxLZa/hQLLt6PIZBeXIyi59nbHNjlHgrPG9LFfhD0g50Fa1MSF hu+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Frmrywd7uRBhgQRldFId4RCyYgqutJ9AQRAAeLMMJW4=; fh=6vB2j8uDwa+rLArlfE1K+QI9w0u6yOJSKaxgIFbpDLE=; b=WCoinEqUkkr6WShmafLt1Wv7CBmLCseo58XCYElh2yzrex2jCbjqSnUc0aDaz72YsK 6nUYtkS0yrSTxm+PC32U88a5EYIFGItIidGLpJ9lNhiqsE/XsJRGoSHtoqviEzjYO9/f RlpNQVsK39S3/z9y5LNPttCCn5r99hqnSZgScLBTQgHahxsSC73U1GQXCTvNFzqiG8Ti loTHO+9IzC7I5qWRQJvBwSWwER9v71QScK0IZeEHAd0NMI73ewdW9aNrYU3Yrxh93PeC I5k63ikxUTk5jiEn4UpR0iqI4zuUuCgZGF+/veE8WLPWsqy+nhDcf//vPy4VpBkWglPx JIQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=niUVsVHK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-120079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m3-20020a170902f64300b001e0d9d8facbsi783893plg.601.2024.03.26.15.41.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=niUVsVHK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-120079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A9C263228A1 for ; Tue, 26 Mar 2024 22:41:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03A8013E6DF; Tue, 26 Mar 2024 22:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="niUVsVHK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C67A813E021; Tue, 26 Mar 2024 22:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492800; cv=none; b=IyaCnX9AkTqakZF12f4/QEArm1V2DnqShkP2km+dS33QG7LEyuzUxWN9yq646Km8Z0Yhvr7sp5a+oNWD79iHDn9iXBZKvJE6z6OGQBTTMRX7RpKn3Wm8sjicQyV1LiretduXldE4JvPDQ1ATNkyz09N6l9zg7bCx/ssyOmkb5pk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492800; c=relaxed/simple; bh=lulGfl/VARvXl3v+IQINE9T8HFeaXr5b7miTjpnKPBo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aYRPBKlR55ue5TLUGjnBVE1jxa7Xv+6WEU0CLEF+ZGlOhYtE72gnzoDt9gD8LxRJ2H0iiUNi4roFk1zDEjknDyfOLUOKPKS11KXimBwiRg6lcQkx2Vk7B7iWXYtFLvlzs67ktYLIUsVUiW9gGLYEpXljbvrLPj2bG8m6sl+SLac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=niUVsVHK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71FEBC433C7; Tue, 26 Mar 2024 22:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711492800; bh=lulGfl/VARvXl3v+IQINE9T8HFeaXr5b7miTjpnKPBo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=niUVsVHKc3NZHc+8bduQh4f+aNkZPxgGbbD/cp6isZmq1TLeongbEUIco/kjnVt4w vrcNPIFu1AXIefydV9FNMA85yIawUajQw4k+GVHqaRrM7sLk34fxC8PhMqn8zjPjon Rvl0Yo4kcCNjUZ9dH+6oF++f+v39DMtxPzVXQfgmjT045TQ9zYUPXioxybMsAynosm NrWCVpBujF9x8mXOInpLI1ROZ3A+ALXRjiJE0QikPWDETejt3OrZ5Xl6+UGQ3Dy6GX Juc0uFFkx6qC3xK5BAjJBHy5fiq2zDKL3B6YNW+SF514M+hngUaYRuaQ1LmV9WSQdK E6vkxMGcrXDBg== From: Arnd Bergmann To: llvm@lists.linux.dev, Saeed Mahameed , Leon Romanovsky Cc: Arnd Bergmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Vlad Buslov , Roi Dayan , Maor Dickman , Gal Pressman , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/9] mlx5: avoid truncating error message Date: Tue, 26 Mar 2024 23:38:03 +0100 Message-Id: <20240326223825.4084412-5-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240326223825.4084412-1-arnd@kernel.org> References: <20240326223825.4084412-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann clang warns that one error message is too long for its destination buffer: drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c:1876:4: error: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 94 [-Werror,-Wformat-truncation-non-kprintf] Reword it to be a bit shorter so it always fits. Fixes: 70f0302b3f20 ("net/mlx5: Bridge, implement mdb offload") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c b/drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c index 1b9bc32efd6f..c5ea1d1d2b03 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c @@ -1874,7 +1874,7 @@ int mlx5_esw_bridge_port_mdb_add(struct net_device *dev, u16 vport_num, u16 esw_ "Failed to lookup bridge port vlan metadata to create MDB (MAC=%pM,vid=%u,vport=%u)\n", addr, vid, vport_num); NL_SET_ERR_MSG_FMT_MOD(extack, - "Failed to lookup bridge port vlan metadata to create MDB (MAC=%pM,vid=%u,vport=%u)\n", + "Failed to lookup vlan metadata for MDB (MAC=%pM,vid=%u,vport=%u)\n", addr, vid, vport_num); return -EINVAL; } -- 2.39.2