From: Stafford Horne Date: Fri, 3 Mar 2023 17:03:00 +0000 (+0900) Subject: stdlib: Fix tst-makecontext2 log when swapcontext fails X-Git-Tag: glibc-2.40~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a13b3ef46fc10e695630d4774af7fe4944f64ca;p=thirdparty%2Fglibc.git 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 Reviewed-by: H.J. Lu --- 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; }