public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] stdlib: Fix tst-makecontext2 log when swapcontext fails
@ 2024-03-23 8:37 Stafford Horne
0 siblings, 0 replies; only message in thread
From: Stafford Horne @ 2024-03-23 8:37 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4a13b3ef46fc10e695630d4774af7fe4944f64ca
commit 4a13b3ef46fc10e695630d4774af7fe4944f64ca
Author: Stafford Horne <shorne@gmail.com>
Date: Sat Mar 4 02:03:00 2023 +0900
stdlib: Fix tst-makecontext2 log when swapcontext fails
The log incorrectly prints, setcontext failed. Update this to indicate
that actually swapcontext failed.
Signed-off-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diff:
---
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-23 8:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-23 8:37 [glibc] stdlib: Fix tst-makecontext2 log when swapcontext fails Stafford Horne
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).