[PATCH] stdlib: Fix tst-makecontext2 log when swapcontext fails
Stafford Horne
shorne@gmail.com
Fri Mar 22 15:49:19 GMT 2024
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
More information about the Libc-alpha
mailing list