unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] stdlib: Fix tst-makecontext2 log when swapcontext fails
@ 2024-03-22 15:49 Stafford Horne
  2024-03-22 17:00 ` H.J. Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Stafford Horne @ 2024-03-22 15:49 UTC (permalink / raw)
  To: GLIBC patches; +Cc: Stafford Horne

The log incorrectly prints, setcontext failed.  Update this to indicate
that actually swapcontext failed.

Signed-off-by: Stafford Horne <shorne@gmail.com>
---
 stdlib/tst-makecontext2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stdlib/tst-makecontext2.c b/stdlib/tst-makecontext2.c
index 5091b126a0..2434cb2af3 100644
--- a/stdlib/tst-makecontext2.c
+++ b/stdlib/tst-makecontext2.c
@@ -63,7 +63,7 @@ do_test (void)
       makecontext (&ucp, (void (*) (void)) cf, 2, 78, 274);
       if (swapcontext (&ucp2, &ucp) != 0)
 	{
-	  puts ("setcontext failed");
+	  puts ("swapcontext failed");
 	  return 1;
 	}
 
-- 
2.44.0


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

* Re: [PATCH] stdlib: Fix tst-makecontext2 log when swapcontext fails
  2024-03-22 15:49 [PATCH] stdlib: Fix tst-makecontext2 log when swapcontext fails Stafford Horne
@ 2024-03-22 17:00 ` H.J. Lu
  0 siblings, 0 replies; 2+ messages in thread
From: H.J. Lu @ 2024-03-22 17:00 UTC (permalink / raw)
  To: Stafford Horne; +Cc: GLIBC patches

On Fri, Mar 22, 2024 at 8:50 AM Stafford Horne <shorne@gmail.com> wrote:
>
> The log incorrectly prints, setcontext failed.  Update this to indicate
> that actually swapcontext failed.
>
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
>  stdlib/tst-makecontext2.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/stdlib/tst-makecontext2.c b/stdlib/tst-makecontext2.c
> index 5091b126a0..2434cb2af3 100644
> --- a/stdlib/tst-makecontext2.c
> +++ b/stdlib/tst-makecontext2.c
> @@ -63,7 +63,7 @@ do_test (void)
>        makecontext (&ucp, (void (*) (void)) cf, 2, 78, 274);
>        if (swapcontext (&ucp2, &ucp) != 0)
>         {
> -         puts ("setcontext failed");
> +         puts ("swapcontext failed");
>           return 1;
>         }
>
> --
> 2.44.0
>

LGTM.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>

Thanks.

-- 
H.J.

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

end of thread, other threads:[~2024-03-22 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-22 15:49 [PATCH] stdlib: Fix tst-makecontext2 log when swapcontext fails Stafford Horne
2024-03-22 17:00 ` H.J. Lu

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).