From c61e6316e0d5895d5b56ac31643983fe722f2145 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 2 Nov 2009 07:10:36 +0000 Subject: Print sigval.sival_ptr instead of "union sigval". --- testsuites/psxtests/psxsignal03/init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'testsuites/psxtests/psxsignal03') diff --git a/testsuites/psxtests/psxsignal03/init.c b/testsuites/psxtests/psxsignal03/init.c index f4003df6b3..d6f2e8b4e7 100644 --- a/testsuites/psxtests/psxsignal03/init.c +++ b/testsuites/psxtests/psxsignal03/init.c @@ -126,7 +126,11 @@ void *Test_Thread(void *arg) printf( "%s - siginfo.si_signo=%d\n", name, info.si_signo ); printf( "%s - siginfo.si_code=%d\n", name, info.si_code ); - printf( "%s - siginfo.si_value=0x%08x\n", name, info.si_value ); + /* FIXME: Instead of casting to (uintptr_t) and using PRIxPTR, we + * likely should use %p. However, this would render this test's + * behavior non-deterministic, because %p's behavior is + * "implementation defined" */ + printf( "%s - siginfo.si_value=0x%08" PRIxPTR "\n", name, (uintptr_t) info.si_value.sival_ptr ); assert( info.si_signo == SIGNAL_TWO ); assert( info.si_code == SI_USER ); -- cgit v1.2.3