unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/2] support/timespec.h: Correct confusing comment
@ 2019-05-16 12:20 Mike Crowe
  2019-05-16 12:20 ` [PATCH 2/2] timespec: Add missing EOL terminators Mike Crowe
  2019-05-20 18:42 ` [PATCH 1/2] support/timespec.h: Correct confusing comment Adhemerval Zanella
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Crowe @ 2019-05-16 12:20 UTC (permalink / raw)
  To: libc-alpha; +Cc: Mike Crowe

I seem to have badly copied and pasted the comment describing
TEST_TIMESPEC_EQUAL_OR_AFTER in such a way that it made no sense at all.

* support/timespec.h: Correct confusing comment.
---
 ChangeLog          | 4 ++++
 support/timespec.h | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ea7b3d4f48..f870deca1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-16  Mike Crowe  <mac@mcrowe.com>
+
+	* support/timespec.h: Correct confusing comment.
+
 2019-05-15  Mark Wielaard  <mark@klomp.org>
 
 	[BZ# 24476]
diff --git a/support/timespec.h b/support/timespec.h
index 4a8b341c5a..e9f466b3d1 100644
--- a/support/timespec.h
+++ b/support/timespec.h
@@ -62,8 +62,8 @@ void test_timespec_equal_or_after_impl (const char *file, int line,
     errno = saved_errno;                                        \
   })
 
-/* Check that the timespec on the left represents a after before the
-   time on the right. */
+/* Check that the timespec on the left represents a time equal to or
+   after the time on the right. */
 #define TEST_TIMESPEC_EQUAL_OR_AFTER(left, right)                       \
   test_timespec_equal_or_after_impl (__FILE__, __LINE__, left, right)
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] timespec: Add missing EOL terminators
  2019-05-16 12:20 [PATCH 1/2] support/timespec.h: Correct confusing comment Mike Crowe
@ 2019-05-16 12:20 ` Mike Crowe
  2019-05-20 18:42   ` Adhemerval Zanella
  2019-05-20 18:42 ` [PATCH 1/2] support/timespec.h: Correct confusing comment Adhemerval Zanella
  1 sibling, 1 reply; 4+ messages in thread
From: Mike Crowe @ 2019-05-16 12:20 UTC (permalink / raw)
  To: libc-alpha; +Cc: Mike Crowe

The original implementations of test_timespec_before_impl and
test_timespec_equal_or_after in 519839965197291924895a3988804e325035beee
were missing the backslash required for a newline.

* support/timespec.c: Add backslash to correct newline in failure message.
---
 ChangeLog          | 5 +++++
 support/timespec.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f870deca1a..33925ec898 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-05-16  Mike Crowe  <mac@mcrowe.com>
+
+	* support/timespec.c: Add backslash to correct newline in failure
+	message.
+
 2019-05-16  Mike Crowe  <mac@mcrowe.com>
 
 	* support/timespec.h: Correct confusing comment.
diff --git a/support/timespec.c b/support/timespec.c
index 653293970a..7c1a4e5389 100644
--- a/support/timespec.c
+++ b/support/timespec.c
@@ -31,7 +31,7 @@ test_timespec_before_impl (const char *file, int line,
     support_record_failure ();
     const struct timespec diff = timespec_sub (left, right);
     printf ("%s:%d: %jd.%09jds not before %jd.%09jds "
-	    "(difference %jd.%09jds)n",
+	    "(difference %jd.%09jds)\n",
 	    file, line,
 	    (intmax_t) left.tv_sec, (intmax_t) left.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 ();
     const struct timespec diff = timespec_sub (right, left);
     printf ("%s:%d: %jd.%09jds not after %jd.%09jds "
-	    "(difference %jd.%09jds)n",
+	    "(difference %jd.%09jds)\n",
 	    file, line,
 	    (intmax_t) left.tv_sec, (intmax_t) left.tv_nsec,
 	    (intmax_t) right.tv_sec, (intmax_t) right.tv_nsec,
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] support/timespec.h: Correct confusing comment
  2019-05-16 12:20 [PATCH 1/2] support/timespec.h: Correct confusing comment Mike Crowe
  2019-05-16 12:20 ` [PATCH 2/2] timespec: Add missing EOL terminators Mike Crowe
@ 2019-05-20 18:42 ` Adhemerval Zanella
  1 sibling, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2019-05-20 18:42 UTC (permalink / raw)
  To: libc-alpha



On 16/05/2019 09:20, Mike Crowe wrote:
> I seem to have badly copied and pasted the comment describing
> TEST_TIMESPEC_EQUAL_OR_AFTER in such a way that it made no sense at all.
> 
> * support/timespec.h: Correct confusing comment.

LTGM, I pushed for you.

> ---
>  ChangeLog          | 4 ++++
>  support/timespec.h | 4 ++--
>  2 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/ChangeLog b/ChangeLog
> index ea7b3d4f48..f870deca1a 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,7 @@
> +2019-05-16  Mike Crowe  <mac@mcrowe.com>
> +
> +	* support/timespec.h: Correct confusing comment.
> +
>  2019-05-15  Mark Wielaard  <mark@klomp.org>
>  
>  	[BZ# 24476]
> diff --git a/support/timespec.h b/support/timespec.h
> index 4a8b341c5a..e9f466b3d1 100644
> --- a/support/timespec.h
> +++ b/support/timespec.h
> @@ -62,8 +62,8 @@ void test_timespec_equal_or_after_impl (const char *file, int line,
>      errno = saved_errno;                                        \
>    })
>  
> -/* Check that the timespec on the left represents a after before the
> -   time on the right. */
> +/* Check that the timespec on the left represents a time equal to or
> +   after the time on the right. */
>  #define TEST_TIMESPEC_EQUAL_OR_AFTER(left, right)                       \
>    test_timespec_equal_or_after_impl (__FILE__, __LINE__, left, right)
>  
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] timespec: Add missing EOL terminators
  2019-05-16 12:20 ` [PATCH 2/2] timespec: Add missing EOL terminators Mike Crowe
@ 2019-05-20 18:42   ` Adhemerval Zanella
  0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2019-05-20 18:42 UTC (permalink / raw)
  To: libc-alpha



On 16/05/2019 09:20, Mike Crowe wrote:
> The original implementations of test_timespec_before_impl and
> test_timespec_equal_or_after in 519839965197291924895a3988804e325035beee
> were missing the backslash required for a newline.
> 
> * support/timespec.c: Add backslash to correct newline in failure message.

LTGM, I pushed for you.

> ---
>  ChangeLog          | 5 +++++
>  support/timespec.c | 4 ++--
>  2 files changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/ChangeLog b/ChangeLog
> index f870deca1a..33925ec898 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,8 @@
> +2019-05-16  Mike Crowe  <mac@mcrowe.com>
> +
> +	* support/timespec.c: Add backslash to correct newline in failure
> +	message.
> +
>  2019-05-16  Mike Crowe  <mac@mcrowe.com>
>  
>  	* support/timespec.h: Correct confusing comment.
> diff --git a/support/timespec.c b/support/timespec.c
> index 653293970a..7c1a4e5389 100644
> --- a/support/timespec.c
> +++ b/support/timespec.c
> @@ -31,7 +31,7 @@ test_timespec_before_impl (const char *file, int line,
>      support_record_failure ();
>      const struct timespec diff = timespec_sub (left, right);
>      printf ("%s:%d: %jd.%09jds not before %jd.%09jds "
> -	    "(difference %jd.%09jds)n",
> +	    "(difference %jd.%09jds)\n",
>  	    file, line,
>  	    (intmax_t) left.tv_sec, (intmax_t) left.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 ();
>      const struct timespec diff = timespec_sub (right, left);
>      printf ("%s:%d: %jd.%09jds not after %jd.%09jds "
> -	    "(difference %jd.%09jds)n",
> +	    "(difference %jd.%09jds)\n",
>  	    file, line,
>  	    (intmax_t) left.tv_sec, (intmax_t) left.tv_nsec,
>  	    (intmax_t) right.tv_sec, (intmax_t) right.tv_nsec,
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-20 18:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 12:20 [PATCH 1/2] support/timespec.h: Correct confusing comment Mike Crowe
2019-05-16 12:20 ` [PATCH 2/2] timespec: Add missing EOL terminators Mike Crowe
2019-05-20 18:42   ` Adhemerval Zanella
2019-05-20 18:42 ` [PATCH 1/2] support/timespec.h: Correct confusing comment Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).