Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2360890lqp; Sun, 24 Mar 2024 15:43:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0oh6XZin9j4r4qP1LicGUbAv/N4BWbPWkaO20SrcP/9NUpIdL9810LWZ3P+YIQrKgTXH9fo4Faw/NWayh4xD0I9VeSj3gu7uin/A1rw== X-Google-Smtp-Source: AGHT+IHh6Qz1RVZUb/Fanvv80FdblAu2X/Z6mo7NNtE8RZvst+CrRxrZBreJr6qi5YHGn+PVNp7b X-Received: by 2002:a05:622a:110:b0:431:344e:a4d with SMTP id u16-20020a05622a011000b00431344e0a4dmr6348312qtw.21.1711320206997; Sun, 24 Mar 2024 15:43:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711320206; cv=pass; d=google.com; s=arc-20160816; b=YbKksDhsHCOhjlUIqpLPWjdb5fVcbevs6yYoeUQAfnY+r/+LShJX3zhGZz6tnfa9lc wCOpCuedIGpL5gphzkTqw2QapRmgpjhOLtaBWbylJmF6x7x9neEYRoLIbxdE+QzUeyOH sJWdwfmWxUTUoOchhdHUmvI5K6mbB9KESrLhSj6dV0nztUM1n0mBuAfHL2Ft4by70Ckv Ts3NbO+4gIu+n6Kjql6Dzj15gL9XiEHpbiN5Qr9Ui27/n9Kpn1iCVqBe+Q6XuTBo3OZk 1o343cBhSTUArkqGVH5u6ocXbvRCOvc0YjLzxx5QuciSGGlA5mJO8aPNQby3VvDzAD/s DMDA== 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=zP21i4BXzLtg5XF3igKpJIevuSyFiiu7jjexYVGOVZI=; fh=8RLesEX/izE45skaFMbpAL6XzjHMQxils0u7MR51RLA=; b=WaF+Fgoih0GyzdLJiDl0rqywlQLcsd8GtXlEEk6z7jk0z5X7hnvTPGWiZ/lF4xgU/z jQQtB5+XnISc6djJvwUDGnDmygGovqc+WwSCINAwjuNmzyN4tFP0AdCkIYs7mVrnaVmw FntaFrHV4DoCc81C0BSWOfGBY/0OWGcNgeUlmcCxxm7h7ttEDlI/JJ7tQiO47jLNd4ti fktoRpJymJUczotH4UDgv2JwBQ7kpR3p8aB+RGQbI8sk9hjv97uLKLxrCnVCRIdfOKzM Om2yt3a6DrX9Qrj+zcJ0hbf2hKcL4lfPAlYKSxbn0K99P4wl92xcwemvTTiFMGSW2eYV sfag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UWyLH/5u"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112920-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w4-20020ac87e84000000b004314946f303si2866477qtj.79.2024.03.24.15.43.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 15:43:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112920-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UWyLH/5u"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112920-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112920-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A22921C21159 for ; Sun, 24 Mar 2024 22:43:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B7746F525; Sun, 24 Mar 2024 22:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UWyLH/5u" 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 4BAD66F085; Sun, 24 Mar 2024 22:35:32 +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=1711319732; cv=none; b=ulwsfM8xfkBaPZBqvDVQLV4uilv+IE9ZId4pVeeNBVcf286+CqqIRa6Q74YI7xaYehdFviumHshoUnghDZICp98xngve1xkcarmd/P8PX7emXqWnnGwksBihgmDyhD1EwvoEmHYEQllEOZOIcQnE+oJTqQrVUePzE0Lvb/KhFVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319732; c=relaxed/simple; bh=vrxNdixPF1P+PaS8QLrMH1Ze7LzOwQIc98jq+2n817o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PVhWhM4aznsurOQosjlVWgr4dhL7pbXc4GnAOzjnVsVZsim4sAVI+LsemFNp8fqdwPlmwx4in64BVcHR5pzmL1jvYbEuFgilXkjO6RPmG1VLKQJv0IaleMf1EETz4HkrRqNP81KcxJ2i6wHc6iS6kx6jrBBv4NZzN7JuMk28GoI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UWyLH/5u; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DB17C43399; Sun, 24 Mar 2024 22:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319732; bh=vrxNdixPF1P+PaS8QLrMH1Ze7LzOwQIc98jq+2n817o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UWyLH/5uUwgENdiUOQpdaOSsTFOBTo9zurie28eTI/d+RDODvQJeYWyGyqF0yq9yi I2vK+mWMB+YKF5aafShXutw33lMMdOl78e/wKnEReGA9Ys9ubmHhBffNrjiHlBqGz0 28LiH7a8M/M2gfjiz+PvlyYRwvGRASAkrMrFP6lfShcdSayoLxCoqAiTDVav4ZKzyz SRIQnodEeShJpSScbumSg+g4x7pxhJYW2x1fIoPy2bUiv+9CmSR1T9JS58Yd+7aPmf U3wPNHvgPz+PwwYrhRIY2kVpwmE/aUrrt4FLQXUir0pfpDVidGbCmY6CVAA0yEv6xh SLKAvGYjw3WYg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: David Gow , Guenter Roeck , Justin Stitt , Shuah Khan , Sasha Levin Subject: [PATCH 6.8 033/715] net: test: Fix printf format specifier in skb_segment kunit test Date: Sun, 24 Mar 2024 18:23:32 -0400 Message-ID: <20240324223455.1342824-34-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: David Gow [ Upstream commit ff3b96f2c9e5c24fca12239cd519a8a18569e687 ] KUNIT_FAIL() accepts a printf-style format string, but previously did not let gcc validate it with the __printf() attribute. The use of %lld for the result of PTR_ERR() is not correct. Instead, use %pe and pass the actual error pointer. printk() will format it correctly (and give a symbolic name rather than a number if available, which should make the output more readable, too). Fixes: b3098d32ed6e ("net: add skb_segment kunit test") Signed-off-by: David Gow Tested-by: Guenter Roeck Reviewed-by: Justin Stitt Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- net/core/gso_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/gso_test.c b/net/core/gso_test.c index 4c2e77bd12f4b..358c44680d917 100644 --- a/net/core/gso_test.c +++ b/net/core/gso_test.c @@ -225,7 +225,7 @@ static void gso_test_func(struct kunit *test) segs = skb_segment(skb, features); if (IS_ERR(segs)) { - KUNIT_FAIL(test, "segs error %lld", PTR_ERR(segs)); + KUNIT_FAIL(test, "segs error %pe", segs); goto free_gso_skb; } else if (!segs) { KUNIT_FAIL(test, "no segments"); -- 2.43.0