Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2556362lqp; Mon, 25 Mar 2024 02:29:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVB7pzKK5Yn7lOCX0yTpLTOMbqKfBJA/Qq2Y2K/LdiSw5fPqVypdrYedD9+ZAdr0lfrpbHGpKF9UgAORv7yxVWEK2Gtpr4FOu4c41fKCQ== X-Google-Smtp-Source: AGHT+IFoSyMua6nSkwEbPrttqucvdRxIqIoybuf63PJ1HbvB10CUJaYwbh0oR4WQWJJ0lY3iM/4n X-Received: by 2002:ac8:59c1:0:b0:431:4e72:9a3f with SMTP id f1-20020ac859c1000000b004314e729a3fmr5178581qtf.1.1711358944487; Mon, 25 Mar 2024 02:29:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711358944; cv=pass; d=google.com; s=arc-20160816; b=lG8SaOwBMU/UIeqIi2C3PziWxFPsnT8kmIX8BN9GHIB+U8DRzv67LdoL8kLjYXj0+1 rI+iT5dZLuzgB6UrYAXKq/Nw5euT+m5NQMf4GFPrO68aAzWr8MxVm7C0SpFUWx/AKbji WlbzfRW5Zu2bcvdkuIzQ9kbkfF898xv+7SBNmt7AtRtKfP+4132LGFL54oCNoSjr+8n1 z2fmWtzmGY33Z7+c4ARMACHQhoxVHYq8ba0G0lLGZoebn9rsKGF/rl0/AVvYfjG34DOw h3B/mXXyO25RZ35F9J3oljUhBMvHC6PI2J0+Ulj/C0P0heNhmpR5J7Hm9/VDyrzPHGl6 k8Hw== 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=JPVVLFwEB3m2b4RElsfbLVDza3K3BYvlNxyDmqD3mJ8=; fh=sE02lowLiZKF1xx2TwCWk7l4cR/9pmwQp/ATAgLK0eI=; b=hiX7WY27+nWMZ/u0qNhkzuVBmmYwfRbuuKlxylYA0rsfaUCIJfk26Y0DexXpXQCHpf A7WVXhqNLY4LLlvATYH43uw90ySC6x7KK0O7P6Rcqb9nsGxBLNbttX9nIw618tAE4A0S 0hB7ZxNSWdasb11DRM2TSKzwJ/Au+yxWAY2mbfYH2MVTRATSAZskfLnnLWdxvNLJGdCA vYZayg5FOsv2QvmGHYDZBKziw9VKbPvQm+p4s9xmRil9iagGq7Fs2VtHdti3ni5+8HX+ GWj01bSiVnCocF1yD1TighS8XLi1nXR/dfIdrHWph58VGOgtwbPKjx9wCGQqSkBENbLs dICA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VqRRpLnX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115823-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b9-20020a05622a020900b0043120072704si5085918qtx.789.2024.03.25.02.29.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:29:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VqRRpLnX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115823-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 3549D1C3151A for ; Mon, 25 Mar 2024 09:29:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05588145FF7; Mon, 25 Mar 2024 03:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VqRRpLnX" 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 24990145B0C; Sun, 24 Mar 2024 23:13:20 +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=1711322001; cv=none; b=AYsne6ZWSShl2ig/nsU2LEn7I0ALcIYFabAmwfSymYdOZriZ+oExaQgvv49LyUlwVNupti5DOvNEsCRz2RI0SMmJksN3aBfp5RZ+SO/AuCbBX8NEHYhHs2OVYTqFchQm28Hc3L8cwhy2U5SR1Gj4hEl5RjqPU6Ki4maZWlLFhxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322001; c=relaxed/simple; bh=5C+htp1cj21cUDOBsDFxDwPW3yx1GRI9GjuFvV4teBA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EA5/Yv8BHtgtmsRaLC/GCjPMLs7FpIoOFo3Sy09RXfsaYDE36Xc91+cGoVXTpE4bNTNNcArM+/DVN1AgSUoEQwoPu8qjPhUIZ1kOep5r5hHx8R9Yc/EKN16UktZiCYIXv1MoGjLvWgFTq0JK7jK94mEQ7AOLly/9tNFZ5mpQ9Cg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VqRRpLnX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F390C43390; Sun, 24 Mar 2024 23:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322000; bh=5C+htp1cj21cUDOBsDFxDwPW3yx1GRI9GjuFvV4teBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VqRRpLnX4bqfm9wMr3Vq1KvbdhRaQ2ciJfRLXANHGh1D0atXPmQ3wUjh3cxzFS2l7 /onkeWXrHU4MCsSSbsniN18HN9YH948FoGZacZ10ijEXUxxUGdUlak8Ysv9NMy8aRk j+iw9HevSqPa2u0FlXhckmxE6TAdXjJrwBHpfJoFrVU9Gj7veNLVyGkqaHamR4Eyxy hWic9mgF61ZVaTzTN5JUFRNTN9idZywEWP7hBgoMbitdI7aP0MUV9f5ThGt+yH41Ek usAiCmP1d5kBC6pa8xenzbNsZAaQOpd7SyOuMF/YGZeoaTmRMPCQYCqwodqMKddtoZ UJNu2Z2aDzjoQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: David Gow , Guenter Roeck , Justin Stitt , Alexandre Belloni , Shuah Khan , Sasha Levin Subject: [PATCH 6.1 071/451] rtc: test: Fix invalid format specifier. Date: Sun, 24 Mar 2024 19:05:47 -0400 Message-ID: <20240324231207.1351418-72-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 8a904a3caa88118744062e872ae90f37748a8fd8 ] '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: 1d1bb12a8b18 ("rtc: Improve performance of rtc_time64_to_tm(). Add tests.") Signed-off-by: David Gow Tested-by: Guenter Roeck Reviewed-by: Justin Stitt Acked-by: Alexandre Belloni Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- drivers/rtc/lib_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/lib_test.c b/drivers/rtc/lib_test.c index d5caf36c56cdc..225c859d6da55 100644 --- a/drivers/rtc/lib_test.c +++ b/drivers/rtc/lib_test.c @@ -54,7 +54,7 @@ static void rtc_time64_to_tm_test_date_range(struct kunit *test) days = div_s64(secs, 86400); - #define FAIL_MSG "%d/%02d/%02d (%2d) : %ld", \ + #define FAIL_MSG "%d/%02d/%02d (%2d) : %lld", \ year, month, mday, yday, days KUNIT_ASSERT_EQ_MSG(test, year - 1900, result.tm_year, FAIL_MSG); -- 2.43.0