]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
stdlib: Fix tst-makecontext2 log when swapcontext fails
authorStafford Horne <shorne@gmail.com>
Fri, 3 Mar 2023 17:03:00 +0000 (02:03 +0900)
committerStafford Horne <shorne@gmail.com>
Sat, 23 Mar 2024 08:36:28 +0000 (08:36 +0000)
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>
stdlib/tst-makecontext2.c

index 5091b126a01d7198f53df6de33388a14057b958f..2434cb2af3299c557ebf9f0b65898a6b491a1ce0 100644 (file)
@@ -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;
        }