Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2606122rdb; Wed, 21 Feb 2024 13:07:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVV2w1yD1wawbhTguBwV/znTndcecA/QKPKKt+RMhnygTWbp7j1wuLkuiDPZsE/qLIHg5NsTdjPDEZdSnK4b66g6SWVosYQxKKNAaUvaA== X-Google-Smtp-Source: AGHT+IGAKKIaW3eQMFfWwIlyYg1fRIXS/FdOnT7U99iUifA7x47wKGzJXA4QX20IXXcCXvDXDzLL X-Received: by 2002:a17:90b:1b4c:b0:299:6018:482f with SMTP id nv12-20020a17090b1b4c00b002996018482fmr10477176pjb.48.1708549639683; Wed, 21 Feb 2024 13:07:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708549639; cv=pass; d=google.com; s=arc-20160816; b=PkQDg4E7mraVE6Viwr0dH2XRajLCYFZBXadk2xQTG/0gMp7uiyV5ScV07GUVJMMqXi tFMFTuREhpG5fSpZjL8QJFYjQKdJ7p+sfJod0fjx+hfFXOGrULfGWEC86vM7mesnSkla 7wWT3kD0v1Mxm/P46QjK4ikaYl+HKwLl8ZpxblRA/4n8ikJpGFTilc3+HStS8bKSTF9E D7jZOs2t0SuxgfqQrPwEHCy1snrTChCoRVRoyTSyzYH+aqc0iEnhKpIXHD8l7DcW4nBt QYaOEK1F8eaY/Prh/z04JTjokqSXiJRbXLCQnb+yRybsu9YU8jeMiEiyAAkiANhVLdH/ T8pQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AAAZa1jDC6WKP3dR2NzQXLtAyykABKSP5MJcfQiYXKs=; fh=AX8QyOTUGLFDOQmx0YIgyXBNwHoqnVF/NyHhzqFGaxA=; b=BexvktOe3MlyVFV3Ebtp8ZhUWqtwZxbqcFJPO4j56PPuRK3mqUyyCPvZdBgZ66X8R1 4lH8nU1flKDgwkU8nFABPtfxLbSTuccmhmxAMZLyb+78zWF7SIKYV+nGEHkTO4biURTP uf1G4Uh7mNxZ4VhPppr5/bMY6I6v0rJkVZsN6zkUZcFDY1Q43hUalaNkLJHG8NUJVxgX 1oJtiVv8PPb+gtjWsQD96VZsAFrQlxNP5CpnXlbXsgDqZNST+IT5ywnG5j0QJDK1eKEI rTYLRKSgXKt8QybHvnUR7xHMjHji+J4/j38B3XEuHciSt1nNth0eQqw4LLGvKqNDzG5u 0T/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fDgPqCbq; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75495-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75495-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id db8-20020a17090ad64800b00297074eed36si8874862pjb.181.2024.02.21.13.07.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 13:07:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75495-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=@google.com header.s=20230601 header.b=fDgPqCbq; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75495-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75495-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 65F14284BE3 for ; Wed, 21 Feb 2024 21:07:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3603086AE6; Wed, 21 Feb 2024 21:07:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="fDgPqCbq" Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) (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 D41A486AF8 for ; Wed, 21 Feb 2024 21:07:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708549625; cv=none; b=QhXCetLowE4tM0SX7Tu4RTG+MBIl0xRa8+npUMb530vV5mHeLUuc0+vJt0ePHHYf5rqU65s3Q8LV4GlzRAjEMpzl51IOuyVSmHR15c7lW815buDxTxgbcmXIiPcFFpfi46d25nG4ut4FzVMCDHioqYRcld7ey6Um4afEOWf/2K4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708549625; c=relaxed/simple; bh=ji6GCepH8kSSb47OKXAEdHfFIEwmtzu8M/MoXQ+oc9U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X3FdUFoZw0H3WAnfOBQ73eDz0TysV4nAABFY8Dhwe2zTP3gHCH4AJf/KFAZckTwjgBXiyMzafUkzDlvfKmwDfwkM3sEe9GbJ8BMbkfYZ976wyJXFJcDWMOts3gEN53g++QXQ4EovVqyP24WQpRbFIPye/+4txlBDnq9pp+2mQPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=fDgPqCbq; arc=none smtp.client-ip=209.85.166.181 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=google.com Received: by mail-il1-f181.google.com with SMTP id e9e14a558f8ab-36423c819a3so4314765ab.0 for ; Wed, 21 Feb 2024 13:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708549623; x=1709154423; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=AAAZa1jDC6WKP3dR2NzQXLtAyykABKSP5MJcfQiYXKs=; b=fDgPqCbq+GFEfg5A2wEHyR/30VAq1XmAp+VwLsxp81acdyqCFx6qjMA4MV5hzxd/BR +tP9OX66qAagwV5UxuwZ6Gd2TvtSBxxKnfxc5yIEwVwIzxXMKsbrKnKBMjAs3WGRPyMN UO+3Vhoacs4PEcIoDO1KSO5CSy5Kfs1tFR6NPWiKOA5K4fhr4ekZ5N0nlm1n0U1CREqt jSIikTx5Bj7/7Uc/wBBvk+tXW/zLFcrMvTsJh0SWNyHb1PVGQJ31sEn0ryCswfoSpAvo YGmowUENEXOjgrK1nZ9T34xYJ4Mimkbu5xxiQIJXECJbvUqfMOjJyOrkXSc2+xGxtNVP CZoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708549623; x=1709154423; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AAAZa1jDC6WKP3dR2NzQXLtAyykABKSP5MJcfQiYXKs=; b=OhxcFb62GhNQzHRxoYvIvFFg9Q6IxQbYr2bsMHwjNWyYxC88h6LzyiFhu6uvXLzim0 ga6XUX1YnqqewPgDC5N5s4Atzy/0pKcOpy8XcBW7vSm3/zUhX1cY2UemS3QJyfQRw9bV gXvkT6rY9tVVP8xthtvhrnvKEXQKGi/bijU7DJmnJYf+gtdBw+pFLLPM4Rx3G32/ZwId 2CCJJAWqAnnfx+qvpVIZB9V/cBfNgfEy7qOAsIbmFWY/+/wJ1ItGh5CRn1eBbjrkVMUS 7isqie6JdwtpfQv0yysGwRv25Z4PnuMXG+jSNLeB2eTvdh1KGuRvmWVjZ86ZuUrUPSyz 31NA== X-Forwarded-Encrypted: i=1; AJvYcCXGeowEpBwfDFDxbBtJYFQo0krsxDqXgavgr3RHK7oGhrL2fc6B0FanigXTwfUhoOi1FDliqj/TCkJCGUmNBV2WtfDi/gz0KOMRIQMU X-Gm-Message-State: AOJu0YzEcxTf7Iyn7Z/FQHu9s7xQqtrghrQFtDuBJGDiCkdFkAEh1MfF ygRSmN41ek589Jvvj22z6OlNaMAYSrt+I7rdNf7d79KjsECV2oxtWiPD+EBXfQ== X-Received: by 2002:a92:d790:0:b0:365:4aa1:8bd5 with SMTP id d16-20020a92d790000000b003654aa18bd5mr5504674iln.5.1708549622918; Wed, 21 Feb 2024 13:07:02 -0800 (PST) Received: from google.com (161.74.123.34.bc.googleusercontent.com. [34.123.74.161]) by smtp.gmail.com with ESMTPSA id bd6-20020a056e02300600b00363807d5c4esm2799990ilb.13.2024.02.21.13.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 13:07:02 -0800 (PST) Date: Wed, 21 Feb 2024 21:06:59 +0000 From: Justin Stitt To: David Gow Cc: Linus Torvalds , Shuah Khan , Guenter Roeck , Rae Moar , Matthew Auld , Arunpravin Paneer Selvam , Christian =?utf-8?B?S8O2bmln?= , Kees Cook , =?utf-8?B?TWHDrXJh?= Canal , Rodrigo Vivi , Matthew Brost , Willem de Bruijn , Florian Westphal , Cassio Neri , Javier Martinez Canillas , Arthur Grillo , 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 Subject: Re: [PATCH 5/9] rtc: test: Fix invalid format specifier. Message-ID: <20240221210659.4p6cq4lhmoz3eaqj@google.com> References: <20240221092728.1281499-1-davidgow@google.com> <20240221092728.1281499-6-davidgow@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240221092728.1281499-6-davidgow@google.com> Hi, On Wed, Feb 21, 2024 at 05:27:18PM +0800, David Gow wrote: > '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 Reviewed-by: Justin Stitt > --- > 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 d5caf36c56cd..225c859d6da5 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.44.0.rc0.258.g7320e95886-goog > Thanks Justin