From mboxrd@z Thu Jan 1 00:00:00 1970 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 D29823C4561; Mon, 20 Apr 2026 19:30:48 +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=1776713448; cv=none; b=nrjOw9Cp1ZbOK/f/zlFbDUVnIaz46y8qpwpahzlLwajcauba18/dGqCAUSDfWVKhMzAWKIFInXX6lIYY0tDj7WdWrICFE4/miYDtkbVQFcyo2Y1Grt18BtFSP2D35/9kx1HZh+ZZtZb3V+1v/AfXmMw7if3irWd8CH9HuMeo1FI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776713448; c=relaxed/simple; bh=EzkrBWV7mo4RuGZ2Otih5js1m7BD0KaWPQdKFp2cNwo=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=VclhOXGM7GsLul1h091bZUQkKxj3XQcnCFurVGmzno3PFkD31oBWtg0seNKJZkInzCFh1EWSEo4HK4Af7X6rvN+xpqMrYTwxxqnujizdAbvQqGwTFfkYj2YVUjTiyX8gIyIu12GOUur010Te6eKfcK7cYCU+4QMSs4fBFkZ6vrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h+E2JdQd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h+E2JdQd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CFDFC2BCB4; Mon, 20 Apr 2026 19:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776713448; bh=EzkrBWV7mo4RuGZ2Otih5js1m7BD0KaWPQdKFp2cNwo=; h=Date:From:To:Cc:Subject:References:From; b=h+E2JdQdLjtcTlNMgRluHKjQoBg2IhjctsS5VqxOmCQxRNfLBh+Rn6AQa35bPycAk GxqmPeA3wkvbBrv4OgOxCW5ozShzWvt8OyVANYqWlXu/EFMWdH7d3M5mQ7aUWOkV0a 7lncNtIm5aSijzH8FzX/xsNYS6f8EDSGgX/dy/xTsnFE9MX8qwMeulJ+CFtkaf4/a2 xAV9qv7cqiwApmcvAUVfRBaTIyezeg3po0/q4hRHDRXB7t/ONb9l6WuCHh9UtMNe0t 25cJbl/OPGXGXnWWuVUNZaUjF+EeOi2Ocw2/vyJrd1wOSwhF5h+4RNWDt/TwG8B7hW xICjaPQ10Orwg== Received: from rostedt by gandalf with local (Exim 4.99.1) (envelope-from ) id 1wEuMD-00000006vwl-0Vw2; Mon, 20 Apr 2026 15:32:33 -0400 Message-ID: <20260420193232.981751367@kernel.org> User-Agent: quilt/0.69 Date: Mon, 20 Apr 2026 15:32:04 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: "John Warthog9 Hawley" , stable@vger.kernel.org Subject: [for-linus][PATCH 1/2] ktest: Fix the month in the name of the failure directory References: <20260420193203.993782513@kernel.org> 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=UTF-8 From: Steven Rostedt The Perl localtime() function returns the month starting at 0 not 1. This caused the date produced to create the directory for saving files of a failed run to have the month off by one. machine-test-useconfig-fail-20260314073628 The above happened in April, not March. The correct name should have been: machine-test-useconfig-fail-20260414073628 This was somewhat confusing. Cc: stable@vger.kernel.org Cc: John 'Warthog9' Hawley Link: https://patch.msgid.link/20260420142426.33ad0293@fedora Fixes: 7faafbd69639b ("ktest: Add open and close console and start stop monitor") Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 112f9ca2444b..dd55eea15070 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -1855,7 +1855,7 @@ sub save_logs { my ($result, $basedir) = @_; my @t = localtime; my $date = sprintf "%04d%02d%02d%02d%02d%02d", - 1900+$t[5],$t[4],$t[3],$t[2],$t[1],$t[0]; + 1900+$t[5],$t[4]+1,$t[3],$t[2],$t[1],$t[0]; my $type = $build_type; if ($type =~ /useconfig/) { -- 2.51.0