Browse Source

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>
master
Stafford Horne 3 years ago
parent
commit
4a13b3ef46
  1. 2
      stdlib/tst-makecontext2.c

2
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;
}

Loading…
Cancel
Save