]> Savannah Git Hosting - gnulib.git/commitdiff
parse-datetime: fix printf format typo
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Nov 2020 03:04:10 +0000 (19:04 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Nov 2020 03:04:43 +0000 (19:04 -0800)
* lib/parse-datetime.y (parse_datetime2): Fix format typo in
previous patch to this file.  Problem reported by Chris Elvidge in
<https://bugs.gnu.org/44763#32>.

ChangeLog
lib/parse-datetime.y

index de92d102e6d2f6456fcdb20742742081b7438a21..229945e86289d6525a6f060d42fa7eb2176e23e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
 
+       parse-datetime: fix printf format typo
+       * lib/parse-datetime.y (parse_datetime2): Fix format typo in
+       previous patch to this file.  Problem reported by Chris Elvidge in
+       <https://bugs.gnu.org/44763#32>.
+
        setlocale-null-tests: work around GCC bug 44511
        * tests/test-setlocale_null-mt-all.c:
        * tests/test-setlocale_null-mt-one.c:
index 44ae903502e735a2a3383b13f95d46d253e4bbb0..e8ed691c8f31f9d0e6f26bfa88a67205874e0b37 100644 (file)
@@ -2298,7 +2298,8 @@ parse_datetime2 (struct timespec *result, char const *p,
                           "%+"PRIdMAX" seconds, %+d ns),\n"),
                         pc.rel.hour, pc.rel.minutes, pc.rel.seconds,
                         pc.rel.ns);
-            dbg_printf (_("    new time = %"PRIdMAX" epoch-seconds\n"), t4);
+            intmax_t t4i = t4;
+            dbg_printf (_("    new time = %"PRIdMAX" epoch-seconds\n"), t4i);
 
             /* Warn about crossing DST due to time adjustment.
                Example: https://bugs.gnu.org/8357