Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2360834lqp; Sun, 24 Mar 2024 15:43:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbKHsy+rGhZh1X7YsGoUS1xOz2MgNNKM9Czfiji0kP3m3EIaU2ZvM4xGwz4kk2tJRp8ZY/LecVJNgmSkTFo1v7E29qDg/R7g20XmYcog== X-Google-Smtp-Source: AGHT+IGLPNT2XSPap0zvazm3US8v4L/0AmzazlzZdwZJIchWYH2O+Jl5N8NDmd1apF+8XUk6rPnc X-Received: by 2002:a05:6358:5604:b0:17f:56be:8c95 with SMTP id b4-20020a056358560400b0017f56be8c95mr6893632rwf.25.1711320193230; Sun, 24 Mar 2024 15:43:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711320193; cv=pass; d=google.com; s=arc-20160816; b=piQEzPjIasXrvEvVS8LKmmrP1JixPOSKh+yzQybrQxDdcLBuJ1bGrccQzro9b2+DRd cu0R/Ld4Aso5w9UH3+ViQq1/+1FG84RKp42gFBYE5kZecGDDFRG/2WPURc3XKonXIL7c NmciZch3NSg+viegDCraiGWPpMMxxhe2++l6jkbuaUJQv0RlULhr/RNQOiovJSBg1y1S fg6t5IJmsBJyuu5J8A9XbTNHyknGNj23VJXf0RrVJ4xAfdUYRmOs/vwqQCpBh7PMJQRI paz2TUHTkqDVoFNcpf9WEy/KN3h/GWq5bhT8Kt1pWw0Y521LSfpe5MDtSwBaTSkmw7RH Bvaw== 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=qkTkGNPGGOJE65aha9DuHBmrG+h5/dNAPp4wClrue/R3kkQoB7RjAQHEMOVtAbDjJH x8syjHORjJk3SnKTEpyqbtC1AQik7kEt2NaFc6cOaH2TTYmsmLvh3g4Cx7rpf+Socdp9 M6EUZHci6IXzWFnZZKRvoeNYv517WgX7b2VPlHpXixHH6QI0eeaqCkBNT1AxeyobjsXg 4ngL+EhXN1qZhFaIvRxRIBGTxIIKSpRD19TMZtPlMEAou4osC6OC8kxevW4FItg5Jf4L d+3ecNkHKS7l77fHokpKlIV/AdFskh/Thv3pV8gdMV8GV5/kJL1bLq62pV7LJRHJnlsv 9a/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lYKYVW4f; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112919-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112919-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 p5-20020a17090ab90500b002a01f12cd5esi6423465pjr.156.2024.03.24.15.43.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 15:43:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112919-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=lYKYVW4f; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112919-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112919-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 CC24C280EDC for ; Sun, 24 Mar 2024 22:43:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D44B45BFB; Sun, 24 Mar 2024 22:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lYKYVW4f" 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 39C9D6EB7C; Sun, 24 Mar 2024 22:35:31 +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=1711319731; cv=none; b=c+D8h9gA6McMky/cZpEUEu4vJyXIUDDuAtCtdzeNujvyWyGY4hlojVwZvE+an6+HAGq8IxHiORArmbh9O9cWpsONrXOpKPp1amULrCEKBoakTi13MSouC73EC8IR+0XnquPPPrijGt7/ipKHpr8p4Woi0JthpMFEw7gErZVuXwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319731; c=relaxed/simple; bh=5C+htp1cj21cUDOBsDFxDwPW3yx1GRI9GjuFvV4teBA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QYwOemICwudZwka9+GxQwPcdcdHSbDzXQdWU2GGgEueNZNalxY3GuhRgQ5pmFiKaqYNlwj2MuF6jDr+AHDdPSdKTfDLo88nqQwUbL2zXhRad9SqPRjX95brlljZGiAJbhJoWFhYSbG4cRaQSxtBs9SRYtSDosLcU6SRXbETm8vE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lYKYVW4f; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 333A5C433C7; Sun, 24 Mar 2024 22:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319731; bh=5C+htp1cj21cUDOBsDFxDwPW3yx1GRI9GjuFvV4teBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lYKYVW4fCC/IvR/1m0eq7YQXMHe9aX5LT17KVEmtKzbzFjo2C3sG1C2tzwziADlyZ tmns1ws9PY07jjcBZk2vX4jH1HwmoQrXL65N2TOUzwIXkjsc86Pa61ZYUut1llSEVq kR9lfdR8y1ZRZH5MfJT1SpmWboV3nspfN+9gCNS+WHMXitFH0XckAOd7o4d7oEupPy e6FBe8kl8LoJEfYYRM2OtRHdpdaQnaTzr4LDbZiw3wxkR0JSywP1zxR7jEMXKtCBn4 dh1BXDS8PysRPidyaBbfrtzxl824SG1VOfraP0ufu5I+RQqvrd8w6qMfpNjT4kBvCh NRDL1LX5vMGjw== 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.8 032/715] rtc: test: Fix invalid format specifier. Date: Sun, 24 Mar 2024 18:23:31 -0400 Message-ID: <20240324223455.1342824-33-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 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