Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2179216rbb; Tue, 27 Feb 2024 13:16:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUgWGmxYcrdjba0sBwdOXVaeKJjkcKPbkBYc0n+iFJR4Rg/eFLRTdwktKOyjlsFlz6odIKTnYqvzb722AOdYbzYK2A2GqXKzuSss27SaQ== X-Google-Smtp-Source: AGHT+IGmDSLByo61Hy7ksoKU8EcTIpG40gChoyNkFvTaPSzg4MdTZ5THiFLczmTU9Vr4BKRbJzBd X-Received: by 2002:a05:6830:10c4:b0:6e2:d8f9:26b1 with SMTP id z4-20020a05683010c400b006e2d8f926b1mr9749166oto.26.1709068619486; Tue, 27 Feb 2024 13:16:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709068619; cv=pass; d=google.com; s=arc-20160816; b=vt/RnCVa4ws6G9RIrmRlK+JxEBUCeNSriU9JV7ALNf1EPcCPACUD2HBvsy0nlYACSq LP/rq3cyxki1u7myzo3Dl/i+SV//fqH7lga4bxwJNIBqQUYb1/5PxlkCm+oZQVgGm+qa OYiSrTiJWN2/BicMEOfT8NF29/IyK6wEhncja21PArMzJA6+B+C8SDPob0KpbEfi9UxD mGdItWAdaL1Gda/ltCHGPyDCOh6HGOEmZQITUgueHcgilsFq9YR8GHh2Qreox2ZhnXRK prgFfdjkz+RENfwdY/FMY3BBHp6nglV2viB5CCVHZilJBguKIeBxOjWtK8otf+JERrqC 49+Q== 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=wvxfxWjaLutlzwBuNGZe/hZYj/M5jqDhw7tveByHAzE=; fh=REO1WkqYHEmkCEVMYuRr+FxH5m0VlehdkDE1rWi7FTg=; b=IGPkF9SUQOWXM8wW5syiZULZYq3zP0Pl9mou+MXPVXJazu9Heokp9Wj/UsjlqjrNwi e4CfOkFoP+uVjX+g+MSldjbFHCtMtG99lzW8TGEzmNqGAoqr71og6k9Xh4q7sl3tRmbF Tvi3Kuz3EmgEv+LwE6qZtiiw9wd9ou7OUUmON3Pag25awmn7VIqhf7q5irzyMQCZuZCu WOJ8tCsin8ntHLgE5zZJtXqBqzqisUnJEW97vO/FYfldbPS19KybyaEnYkVYrM3T5cta BLbEwiaSJUdoBegDy+RsBEdXV3V1t4vWeTlXBjcU7bY/M8qOmVft9XazY678wO4/Pe8/ P06A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hERC8G3L; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-83979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 q22-20020a638c56000000b005dcbba492aasi6136539pgn.736.2024.02.27.13.16.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 13:16:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83979-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=@bootlin.com header.s=gm1 header.b=hERC8G3L; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-83979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 D9DACB237D5 for ; Tue, 27 Feb 2024 20:33:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BFDD14DFF3; Tue, 27 Feb 2024 20:32:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="hERC8G3L" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.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 94D134DA0C; Tue, 27 Feb 2024 20:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709065975; cv=none; b=jPdNN2XF9gj4Iaq58FhPvXuFa6w3aO5PjwfqM6o5rqhC4S+rdTMuWaUnZ3VrlQgOybwST4uSCTHG1beIqtSmkvADDo0XR3PrVFA6MpNY8VYIgeREderJP8lE3BXmpuFljv1ht+t13xL8ueeuBdp0dpArZTEO9Az1n6lbKoXoJFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709065975; c=relaxed/simple; bh=myVqhclYaoWabykXKhyPBJrb51yvHqqkiErwFvJjMk4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZOjSz11kTybERg17NwmdpvmfJd/iUTz1xmSIAcEggZReXTUaLv39aZIwAmg5gdXSvxXFdO+Qd6YaMa5qEUOqIaQQuCREGpwijuA/U8qQGcSVAmRxvHtuVIQSxmtN8cQIYc+YE/z5XlyDCPHvXQzXui+qLNm7nDFJ9niUaoHW1i8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=hERC8G3L; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id DE5001BF204; Tue, 27 Feb 2024 20:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709065969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wvxfxWjaLutlzwBuNGZe/hZYj/M5jqDhw7tveByHAzE=; b=hERC8G3LaA8JY7wMbCyhJKrjL4sPlqLlanim3qsGSCgJw5Dl1oT5pZcsXGkVC0cWuGMOcU j+ofXy4OyaXeQpxREaWY6IPtb+yupGSYwKfByF7MPTbFflprTXL6aDLQ7ARST491n4ykMh TyB9G8z6wFuiAN2sm15XUMgWe3NKOFVr2DrPPs5JOlv4KCeAi026PEfUMCVxIBut/YEWne mZqvk8vuGznc2J9QmsdTn+fkXzTPKzOjHT5Qp55HUuStQOd+ytAO3QwH87yxDEqEMePaR0 InWrTLvihxQ3e7Hw82nSd1SIpOr8QPhzxBofMlGmbbxPvCT/YskO5LBQWBfujA== Date: Tue, 27 Feb 2024 21:32:43 +0100 From: Alexandre Belloni To: David Gow Cc: Linus Torvalds , Shuah Khan , Guenter Roeck , Rae Moar , Matthew Auld , Arunpravin Paneer Selvam , Christian =?iso-8859-1?Q?K=F6nig?= , Kees Cook , =?iso-8859-1?Q?Ma=EDra?= 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: <20240227203243070e7d85@mail.local> 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> X-GND-Sasl: alexandre.belloni@bootlin.com Hello, On 21/02/2024 17:27:18+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 Who do you expect to take this patch? > --- > 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 > > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com