mirror of git://sourceware.org/git/glibc.git
support: Add missing EOL terminators on timespec
The original implementations of test_timespec_before_impl and
test_timespec_equal_or_after in 5198399651
were missing the backslash required for a newline.
Checked on x86_64-linux-gnu.
* support/timespec.c: Add backslash to correct newline in failure
message.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
ff6bec7d47
commit
b62bb3bc68
|
@ -1,5 +1,8 @@
|
||||||
2019-05-20 Mike Crowe <mac@mcrowe.com>
|
2019-05-20 Mike Crowe <mac@mcrowe.com>
|
||||||
|
|
||||||
|
* support/timespec.c: Add backslash to correct newline in failure
|
||||||
|
message.
|
||||||
|
|
||||||
* support/timespec.h: Correct confusing comment.
|
* support/timespec.h: Correct confusing comment.
|
||||||
|
|
||||||
2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||||
|
|
|
@ -31,7 +31,7 @@ test_timespec_before_impl (const char *file, int line,
|
||||||
support_record_failure ();
|
support_record_failure ();
|
||||||
const struct timespec diff = timespec_sub (left, right);
|
const struct timespec diff = timespec_sub (left, right);
|
||||||
printf ("%s:%d: %jd.%09jds not before %jd.%09jds "
|
printf ("%s:%d: %jd.%09jds not before %jd.%09jds "
|
||||||
"(difference %jd.%09jds)n",
|
"(difference %jd.%09jds)\n",
|
||||||
file, line,
|
file, line,
|
||||||
(intmax_t) left.tv_sec, (intmax_t) left.tv_nsec,
|
(intmax_t) left.tv_sec, (intmax_t) left.tv_nsec,
|
||||||
(intmax_t) right.tv_sec, (intmax_t) right.tv_nsec,
|
(intmax_t) right.tv_sec, (intmax_t) right.tv_nsec,
|
||||||
|
@ -50,7 +50,7 @@ test_timespec_equal_or_after_impl (const char *file, int line,
|
||||||
support_record_failure ();
|
support_record_failure ();
|
||||||
const struct timespec diff = timespec_sub (right, left);
|
const struct timespec diff = timespec_sub (right, left);
|
||||||
printf ("%s:%d: %jd.%09jds not after %jd.%09jds "
|
printf ("%s:%d: %jd.%09jds not after %jd.%09jds "
|
||||||
"(difference %jd.%09jds)n",
|
"(difference %jd.%09jds)\n",
|
||||||
file, line,
|
file, line,
|
||||||
(intmax_t) left.tv_sec, (intmax_t) left.tv_nsec,
|
(intmax_t) left.tv_sec, (intmax_t) left.tv_nsec,
|
||||||
(intmax_t) right.tv_sec, (intmax_t) right.tv_nsec,
|
(intmax_t) right.tv_sec, (intmax_t) right.tv_nsec,
|
||||||
|
|
Loading…
Reference in New Issue