diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-02 07:10:36 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-02 07:10:36 +0000 |
commit | c61e6316e0d5895d5b56ac31643983fe722f2145 (patch) | |
tree | 501632b490a440f542b7f439c56a53e21a185841 /testsuites/psxtests | |
parent | 2009-11-02 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-c61e6316e0d5895d5b56ac31643983fe722f2145.tar.bz2 |
Print sigval.sival_ptr instead of "union sigval".
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/psxsignal03/init.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 ); |