Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2543227lqp; Mon, 25 Mar 2024 01:55:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXceeDG/EyJrOJ08/94RmaTdsQManFVcS2CAErhZtO/D9YrbQTfvqdbNMY2teVn4ZgKP/Vw52GdF9AugrA5XL72mnSccxD6Vbit/vXwnA== X-Google-Smtp-Source: AGHT+IHBjk6Ffc6RqlVIQGfHLiEpuO886cRqeonjswAXyOKWuDPmDJ6tW5xCmkFnVYtB63gJrT5g X-Received: by 2002:a05:6a21:9989:b0:1a3:ac89:d478 with SMTP id ve9-20020a056a21998900b001a3ac89d478mr6582461pzb.1.1711356941986; Mon, 25 Mar 2024 01:55:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711356941; cv=pass; d=google.com; s=arc-20160816; b=AK0RHW52NbmRPUpwP6hDfmJTLcpjuB/6J3ip6cgRXUmHNVLkAC3X/8I+IjGblWI43o oeu9G0h+pDQFldwdeapQnet5/jzWGZwDANNfbKmsSnHNiWOJeMCgF9npcC2Bk/jBFlZS h4+RZ9rup7tvfCi57pvwww7/OjXYRgHLNUyU9i//CEIeDmGC0qvnaJjGux3UTR0RyYLR PfOWO1KXxp9RjVdH4lZJME1YzG6W5RSMaTXzZK6/xW5FSiyVDmGa6qYOv//xuNcBxIq9 uA4ugCmx6JGUqjbM3Eb2KsNizQEWAUpkABrLqv7JUHf87rv2VBMILPpqA/2NrMZBKsBV zsQw== 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=s5nlBKlgltlqgQXxaoXgktvjrP38GeXR5aydp8tyGNQ=; fh=8RLesEX/izE45skaFMbpAL6XzjHMQxils0u7MR51RLA=; b=s4korH1fPwjofE7yZ/4mjH0fMpa43UNRHcO3ZTdeiW7yGXIg8YX78atK3X3zoOsXzb jwig/IUEBaIffsmgHx858RjBd+XUn0EbvYL9LjqgcCyevAfDaM+3RaMtTQHXJQ0tC8fQ 3/vnNXfFUyOTY1Iym3DaZd3tqtdzByUgCNEANFXube7b26E8/zITCDig7CEaLJ6gyvem 7eGpqIBLWmtWkCTCfYUqa0fqUL5XLG12u8B1ZuJJ84QLaq8Dgde6X+gK6Y4NMqY6RA9l j7HrFYvJNK1Cs9HxbfntVox8lYTKieIxs/PeWeTf5fT0sIIWSFnWd1j+OLlGTnI/VKzv M2IQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bLlSugiP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115815-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. [139.178.88.99]) by mx.google.com with ESMTPS id hy11-20020a056a006a0b00b006ea7f6b4b52si4107876pfb.279.2024.03.25.01.55.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 01:55:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bLlSugiP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115815-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115815-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 C3AB829B7FB for ; Mon, 25 Mar 2024 08:53:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E92203767E8; Mon, 25 Mar 2024 03:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bLlSugiP" 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 ED20F53387; Sun, 24 Mar 2024 23:13:18 +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=1711322000; cv=none; b=dz/F2EtpNe9f0k6fvoep7QZp5uGoM0b9CCOTp5OHRcMfGj0dkvGMgDEI1Km3wO0WmXTjUHWbgTsOFmbqo54mlCbVVyrYk3r0teqekAyB5qVUsA1xYhOYmV/vRl+/Cv7sA93gEfGulmVRbTfx0F0tQCpdnddhBFUMXE8bE4LCH98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322000; c=relaxed/simple; bh=m0x71HP1+3WNaL21MuUBueBIDkfZI+lwGDAXS1dSDuM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WmYAsXyaVKIVzr9xx2iMj/Mqo5HROMAyeNs0OwBaZPU0xV8+MTuNwrvm6hxktw8fXTs663MILbmDIioAVA9p7F5jrMFonUIYtRRBj81AGNjh4HhscYXJ+gkSL/HFh/GGcGKNY47ooJoz/tHg6q248L/bebXn1RD84kzREBGsqfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bLlSugiP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05D21C43394; Sun, 24 Mar 2024 23:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321998; bh=m0x71HP1+3WNaL21MuUBueBIDkfZI+lwGDAXS1dSDuM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bLlSugiPrGqOqi1FMQYTjdKrNhg2+NVt5KWNkKTNfNt0PtwEBFtw1Q1USugbMpec1 EMW4qb7P2spHL3vG0R9iBWpU9OnRWxJvfDcmJ7KyXypDHxoJt5hEMyMkXB9bpstJh1 KRimxdvjawNetWyqjb8ek1HOTHEQB3oeWE4HE6zmF/3QoCzHDUZm8M5afAJR/9lrCX O2JK0J+NgHsWJw3sqlX84HZJBQ3oWJU+hCSLARxPJ/+puXE50WJt+TDkNea4VMKB4u T0QPYauC6erPc7oTUketwYq8Oe6zNWLT+IMj/yHm/FDKQTaJJARX34zUsf1fpWYlBN +sbh6OoLjsjFQ== 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.1 070/451] time: test: Fix incorrect format specifier Date: Sun, 24 Mar 2024 19:05:46 -0400 Message-ID: <20240324231207.1351418-71-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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 133e267ef4a26d19c93996a874714e9f3f8c70aa ] 'days' is a s64 (from div_s64), and so should use a %lld specifier. This was found by extending KUnit's assertion macros to use gcc's __printf attribute. Fixes: 276010551664 ("time: Improve performance of time64_to_tm()") Signed-off-by: David Gow Tested-by: Guenter Roeck Reviewed-by: Justin Stitt Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- kernel/time/time_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/time_test.c b/kernel/time/time_test.c index 831e8e779acef..f7c3de01197c9 100644 --- a/kernel/time/time_test.c +++ b/kernel/time/time_test.c @@ -73,7 +73,7 @@ static void time64_to_tm_test_date_range(struct kunit *test) days = div_s64(secs, 86400); - #define FAIL_MSG "%05ld/%02d/%02d (%2d) : %ld", \ + #define FAIL_MSG "%05ld/%02d/%02d (%2d) : %lld", \ year, month, mdday, yday, days KUNIT_ASSERT_EQ_MSG(test, year - 1900, result.tm_year, FAIL_MSG); -- 2.43.0