From 010186901d16060a5d1178cc0f2f59199228b99a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 24 Jun 2015 13:56:46 -0700 Subject: [PATCH] Print more information in tst-getcpu failure case. --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/tst-getcpu.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bad1333b26..d1bd19ebb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-06-24 Roland McGrath + + * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu + return value is wrong, print the expected value too. + 2015-06-24 H.J. Lu [BZ #18585] diff --git a/sysdeps/unix/sysv/linux/tst-getcpu.c b/sysdeps/unix/sysv/linux/tst-getcpu.c index 77baebc0a8..d9c05a7ada 100644 --- a/sysdeps/unix/sysv/linux/tst-getcpu.c +++ b/sysdeps/unix/sysv/linux/tst-getcpu.c @@ -43,7 +43,7 @@ do_test (void) } if (cpu2 != cpu) { - printf ("getcpu results %d not possible\n", cpu2); + printf ("getcpu results %d should be %d\n", cpu2, cpu); result = 1; } }