Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2531339rdb; Wed, 21 Feb 2024 10:21:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUY1aODQ0Yuoc/Hh+UTT7bDIRZcB2vjaLCfHLPFhv42sTuXuHBHdntZKI91tnDWOb8hFWTFpKAct48l+XQ8d2JeBm8mkdRFekbbCOggBg== X-Google-Smtp-Source: AGHT+IFm7eSTSUYCvjS5FH7OxtS1Br1nNAMjk+mD7JSlFDVM4Ut6laij4bPLXpB28FCBcOgC89bh X-Received: by 2002:ac8:588a:0:b0:42c:3853:c58a with SMTP id t10-20020ac8588a000000b0042c3853c58amr463273qta.25.1708539700882; Wed, 21 Feb 2024 10:21:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708539700; cv=pass; d=google.com; s=arc-20160816; b=mv4udPMUQcLfSXOsgxHEz3s6AyRW2LWQawvnsCg0B2+TaoR43USPwLiET9eo4XGzOM nImF+2YSL8UKfnHQTLuMaw9IAy/BYa+/kWxNrIf0LGZIl+o0NV5YwcKwLir6aMpunfU9 S4Aj55V5BPhZsS0nIoXb8uZKcwHfjMpKjjYAboJjbSq8HnJO9J90zH+TgOU8g5zHn3Wd RtgoclpzaO2ZKqG+5QJ+oHnU4gi07Bh81pucAe7pzmGu7GuSITB4HDI36/4gWul724lt +dsZbq4h9aSafSWegpTQ4PaZ/Kn4v1aaeNBoH0ugROcHAagyN26lhfHGbldS94/ri+EB a7WA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=IuNFl3blakrH/7yQAxRYEYcMJlFbNzfht3aJk7PNNgs=; fh=nIzfCWDCwDn/E8uzzfnxn+ptT7DBn4h9xTeW/zyyZaI=; b=JkzfJsZ29AVAOjiSl/+sq78Y+70Yib2aGUzdZqSKKc1qKzlrWTqb0mTZoUEo/xg1b6 zPKmGhas3yyBFeGTWtnOLSTcnDPzbFZBlSKtoQvtrtNJ4uevmzipW4IDI5etAP1kD0IR 6KfncP320CiAJotEtLHgvUGs+kYf9V7HHcrS4L+POz9YEmEVJ7DngYd11PVLMx3/EIQA kGgmfR4AfDQz2Vc9bGPlrbfL8dqc8FpAJ5IW/SwlqPYsS3JCkX92x6rt+n5WPQvnqyzK WBfdAhfeplfBXmALdDcEo5MB08t2pX/eF+pzLYaiOtt05rsRqPE4BvDks7F2UADDxe75 UH7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EmT4lROT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-75264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f24-20020a05622a1a1800b0042dea2e19aesi12196923qtb.56.2024.02.21.10.21.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 10:21:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EmT4lROT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-75264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 913691C237E3 for ; Wed, 21 Feb 2024 18:21:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBFFE85647; Wed, 21 Feb 2024 18:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="EmT4lROT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zwv1Qg+J" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7052D85286; Wed, 21 Feb 2024 18:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708539683; cv=none; b=Q4jCviqqUWDiEuxhrxQHfT7UyAzElhZfDdb+ItuDbMMvYrX/xXpmZbrs0qOXT6BuQagZfWYW3lBmywlQOSnheT7gSm4p9fSXadJhoIGBISaSDmsTogmeaALQxCgWFaBJ91pJlJKXkjhWT0snPmbzqKlM+35Qm3zivpedYcSGTNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708539683; c=relaxed/simple; bh=rUuWhVTNtY+N+3k/2H3z84CAvmaTh4/RaqQ51S4F4MA=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=T74yhQWo9+jy2uu61v+OpE1Jm6aohMHyVCt4z+SbTN8HCgFDYHv1aviz2DH9VKwlBF3xY8JozoQFFxWhgmGpfj81+YWX/5qe9jOciQa+pA29uS+uSfftKoXCpHYmNLYR3l8bGxWtqlDnaDLxw24Ojz+4sH6kUDAw+KBsv87339c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=EmT4lROT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zwv1Qg+J; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 21 Feb 2024 18:21:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708539679; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IuNFl3blakrH/7yQAxRYEYcMJlFbNzfht3aJk7PNNgs=; b=EmT4lROTStP7ZeIowyL5SK7gS8f2Vlc9J5bel33G3lRW9igJorv0apKBSB04ioxfwWz9yY ZxrDCW+WUD+AxPRZYIwRPHRZm2Y2KPTjWa23V8M7gLGD/CgCog86P8CtYArjomBmFgLqoD iwvLN6Z4y+D2g4FN3tveJG0pb6jd4poLq+bCOpGTJZok3WJycAqIuTLj/E8P5mNSV75zP2 oX/NfWu8WVEpa+6+YQJA8AZIzXN1dghgjnbkO4IMVZ0CrWHysREJgqBymjRJd36GGfO5b7 JpwKgenhC1fRzclveM8uspriIFsVCcorUAMHMnmSuu7rFVF/LgTUmlpP1FlmRQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708539679; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IuNFl3blakrH/7yQAxRYEYcMJlFbNzfht3aJk7PNNgs=; b=zwv1Qg+J85XYDoX63d2lvHs6mlH4vbtL7iPPLGAwqQX+KeEdzK8sMEsZRgHde/CgnvnRCB 7jYVi/r9byZEJDDQ== From: "tip-bot2 for David Gow" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] time/kunit: Use correct format specifier Cc: David Gow , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240221092728.1281499-5-davidgow@google.com> References: <20240221092728.1281499-5-davidgow@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170853967893.398.2243431921138187436.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/core branch of tip: Commit-ID: e0a1284b293bdf91a68a6d1a0479ad476d0d8ec2 Gitweb: https://git.kernel.org/tip/e0a1284b293bdf91a68a6d1a0479ad476d0d8ec2 Author: David Gow AuthorDate: Wed, 21 Feb 2024 17:27:17 +08:00 Committer: Thomas Gleixner CommitterDate: Wed, 21 Feb 2024 12:00:42 +01:00 time/kunit: Use correct format specifier '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 Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240221092728.1281499-5-davidgow@google.com --- 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 ca058c8..3e5d422 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);