Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2252112rdb; Wed, 21 Feb 2024 01:36:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmcaWXIitPwXX/2A3w2sm2+nFCcisJEo2y6CQL7oPDTUdmNiBu0MKoN++ApeLm5J7loLPQZzJarxnLkx/XJJzCxGXml+pIaw9fQX6aYQ== X-Google-Smtp-Source: AGHT+IExh65NZ7wW7z2ypFbkwKFLrAdirFM+VW+q1TK+sGY7KuDH58ONlm0NAtXn1T/9VRiF1/7t X-Received: by 2002:a05:6358:5e85:b0:17b:5c4c:7895 with SMTP id z5-20020a0563585e8500b0017b5c4c7895mr1335749rwn.22.1708508184058; Wed, 21 Feb 2024 01:36:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708508184; cv=pass; d=google.com; s=arc-20160816; b=Cd2II2BJu5kxGXdom75D+7nVamotDJOmA6T87iI3yYx1BPkEhIrNpuJgrPQP49efib glo5PdbX7J31zlUAVlbriZbAUFiRLi5DihLaJ4qLeI/LVerS91MSeZNIGe2n5FIGhdm/ oFUReD+pxd/i7uG1DhCMhIz2GhpPPQ+6t0hADZA5mxos/1cztwpnDog10X3TIO0FMIp2 rIPOVJOZ3qwn21VvGy7aaFSqYdEURzGmstsCsK/SOQOiBKnz62Er4hKvNJMkcZLXQjaQ rQKklK8uvDEknn67sXfNatrkriEj5he7jl28NtVF+Z+NnPWNl9/HxslH59467GznACdq OCBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=l+N/x8q0XM6q/oxl++oFE/zLIduvg/H3kbNqGrSm6L0=; fh=Y461Ld0hOI3ohyrOrHoNg2UhV0Iv8nnFupPm2ciXphQ=; b=JY//yQTrOxCeXvkWznxRKdRCGGiAW7M3kzrQCkON1BAI8HAvo5xo97ktacV2GfXEVD L7Vb0CJEkA5xHjzrwWuzbXuUY3In+pgHgWwPEIwZNrq2iE7jqN3cJZ+1aNuNWP9W4nDd g6o5nEWfBgJJtKdK+Hfm/bm3XyKUlPI0Y29SMbIxPEBTs5Rc+fOuXOm+fec26pUApyU3 i7l9a4LyA1ZoK/Nl3IEncinw6ahMFsv8mLYyefFFKRUzP53n+xduQipAgx/qkPf/8xnr 4eSTR82AFghHI39x0z5GVUowF2bR0Rnu21YbXu/U49M/fb0eLPHHTlrmQDo3MeJjNQn7 H5xQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=q9pFYzKQ; arc=pass (i=1 spf=pass spfdomain=flex--davidgow.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-74408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c1-20020a056a000ac100b006e116bcae18si8026218pfl.9.2024.02.21.01.36.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:36:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=q9pFYzKQ; arc=pass (i=1 spf=pass spfdomain=flex--davidgow.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-74408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2773FB25D54 for ; Wed, 21 Feb 2024 09:31:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E4FC446D5; Wed, 21 Feb 2024 09:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="q9pFYzKQ" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBB4A41233 for ; Wed, 21 Feb 2024 09:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507711; cv=none; b=K0oAiVXvy814qPIYpg5UxuoMdUoiJY9r36pi0z+g69Yld2pZKh7aA9XDDwJN34kfIRyygjmdo7KFPh5uEJs0igN8oV33Ehrh9Wnivz3Us3d4OCejEeNoN0rCJ9YuCFLkwmbzH8DQSreQPJXn+hjppN9HqGHh6u+UwPmbZCdw2kU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507711; c=relaxed/simple; bh=Mu+X+yYW4cvmC9NQvhPl5vvHTK1CoiY4aafGL8tDBao=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=FjWjTuObmtveXLPtY2wB9htxiFkdNUS3s7XtAnfwNI/UuB08OaaV6qJTerbKicXAkRUMZrm0fKAnC9hP1QUO24L36tMU9c2qlvtMZst5SVkFMmCxmupMz4m6aDBqMPRwfAoIhm9/fXRhFK4cuYSU4GA+FghK53jBpERZDa2ExUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--davidgow.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=q9pFYzKQ; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--davidgow.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-607838c0800so82851537b3.1 for ; Wed, 21 Feb 2024 01:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708507708; x=1709112508; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=l+N/x8q0XM6q/oxl++oFE/zLIduvg/H3kbNqGrSm6L0=; b=q9pFYzKQA6kltZmFbrzdKjQhTTjCVsENKULtAAj/is4cgaEBuvUDnYYrgrPATdGfB4 B5Izv6MUwuUJKl8ix+oHSB+9Nw+86DsOuPgccNKWV2pQ1UU1aRfLgtg4E8b90VNoCCKy d7XE4OZcNf+5/3lL35N9TygGamSl6fDjeFX2mQYhPl4B8Dletz4oaSgrB9296lEPkcXY sJ7UaiDAy8j1lvsSqqD8h84HPlnsMJ6pfpPEq3hrqI0dnrJAzY/ZQgR6bJ8do1phyOXO 257g9vZ1ZsDgd8wngEQP7Fimbkj58R5r9iMN1WDcE+juk6m2yIy+3qnnYreQC153EZsU GEgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708507708; x=1709112508; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=l+N/x8q0XM6q/oxl++oFE/zLIduvg/H3kbNqGrSm6L0=; b=QGUUM3dTzWBVQYDR4CZPy6A+dvCIy/G3SaqnbSiPUcHMXDi5JPUOwR5CGzKWUDq06J FIx3MGhhe023DhkJkpAggtz2SSvcTO3fm6ZuA20AgJOKdUpQWkRIeiFZxAWLG6vfwvLp b8Ay0bL9KMBtV855Q91w/nmYS4OIDD+fkCR/Nvp5mnYbQ+YTA+YTTmREwFJJCSuXM2as ejJ5dPQz9QwTOcOXn70nZQaq4Ke7RnKFKng178DWIDI7hNF7R/n/k2SpzDC2TWJF7nzz BjiP2dq1SsD75Yh6RH9K+CnehJSccmsK1Ud+NaRVvgRA3TbnpJPEcoPKWML1TvBcFWGD x+8A== X-Forwarded-Encrypted: i=1; AJvYcCUtKGisNQ7iLJfqD9Anxxnv6NrqIpsLg+8xhGsnWJNFXkXGGdu+DJt8Ia9bt3AmxKZcWcDjbr4F3TOlXSuR2P1hkYZf/EwH0THqcxJK X-Gm-Message-State: AOJu0YxmH4C1Trz+hXKBzUFWxABM59IEb0NUn+4vpzNu8XU0sbllpkDZ kV7jAmj+Wf2Uh3TeO6oVPLAXrVwcxlZ+yMIcZ7noggUtDudG03l0JRAFRgpjZ+dQb8KBQUHoBrL CmYge9NSm4g== X-Received: from slicestar.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:20a1]) (user=davidgow job=sendgmr) by 2002:a05:6902:1081:b0:dc2:2e5c:a21d with SMTP id v1-20020a056902108100b00dc22e5ca21dmr5584522ybu.6.1708507707855; Wed, 21 Feb 2024 01:28:27 -0800 (PST) Date: Wed, 21 Feb 2024 17:27:19 +0800 In-Reply-To: <20240221092728.1281499-1-davidgow@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240221092728.1281499-1-davidgow@google.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <20240221092728.1281499-7-davidgow@google.com> Subject: [PATCH 6/9] net: test: Fix printf format specifier in skb_segment kunit test From: David Gow To: Linus Torvalds , Shuah Khan , Guenter Roeck , Rae Moar , Matthew Auld , Arunpravin Paneer Selvam , "=?UTF-8?q?Christian=20K=C3=B6nig?=" , Kees Cook , "=?UTF-8?q?Ma=C3=ADra=20Canal?=" , Rodrigo Vivi , Matthew Brost , Willem de Bruijn , Florian Westphal , Cassio Neri , Javier Martinez Canillas , Arthur Grillo Cc: David Gow , Brendan Higgins , Daniel Latypov , Stephen Boyd , David Airlie , Maxime Ripard , "David S . Miller" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org, linux-rtc@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-hardening@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 --- 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 4c2e77bd12f4..358c44680d91 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.44.0.rc0.258.g7320e95886-goog