[COMMITTED] Print more information in tst-getcpu failure case.
diff mbox

Message ID 20150624205729.CC8DF2C3AD8@topped-with-meat.com
State New
Headers show

Commit Message

Roland McGrath June 24, 2015, 8:57 p.m. UTC
2015-06-24  Roland McGrath  <roland@hack.frob.com>

	* sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
	return value is wrong, print the expected value too.

Patch
diff mbox

diff --git a/sysdeps/unix/sysv/linux/tst-getcpu.c b/sysdeps/unix/sysv/linux/tst-getcpu.c
index 77baebc..d9c05a7 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;
 		}
 	    }