From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.01.org
Subject: [PATCH 2/2] test-runner: fix logging directory name
Date: Wed, 06 Nov 2019 13:38:15 -0800 [thread overview]
Message-ID: <20191106213815.20555-2-prestwoj@gmail.com> (raw)
In-Reply-To: <20191106213815.20555-1-prestwoj@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 637 bytes --]
localtime indexes month starting at zero so adding 1 gives us a folder
name with the correct month.
---
tools/test-runner.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/test-runner.c b/tools/test-runner.c
index 1c807aea..163f53e7 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -3184,7 +3184,7 @@ int main(int argc, char *argv[])
snprintf(log_dir, sizeof(log_dir), "%s/run-%d-%d-%d-%d",
optarg, timeinfo->tm_year,
- timeinfo->tm_mon, timeinfo->tm_mday,
+ timeinfo->tm_mon + 1, timeinfo->tm_mday,
getpid());
mkdir(log_dir, 0755);
--
2.17.1
next prev parent reply other threads:[~2019-11-06 21:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-06 21:38 [PATCH 1/2] test-runner: run iwmon if --log is used James Prestwood
2019-11-06 21:38 ` James Prestwood [this message]
2019-11-06 21:41 ` [PATCH 2/2] test-runner: fix logging directory name James Prestwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191106213815.20555-2-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.