diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-27 14:10:54 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-27 14:10:54 +0000 |
commit | 39615f481a74f1d4d612b734ea8a126e4e43b407 (patch) | |
tree | 7f2c2c7288bbbe738978a7082460ee50a9414f52 /testsuites/psxtests/psxkey01 | |
parent | 2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-39615f481a74f1d4d612b734ea8a126e4e43b407.tar.bz2 |
Use PRIxpthread_t to print pthread_t's.
Diffstat (limited to 'testsuites/psxtests/psxkey01')
-rw-r--r-- | testsuites/psxtests/psxkey01/init.c | 2 | ||||
-rw-r--r-- | testsuites/psxtests/psxkey01/task.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxkey01/init.c b/testsuites/psxtests/psxkey01/init.c index e71ee612bf..1213ff582d 100644 --- a/testsuites/psxtests/psxkey01/init.c +++ b/testsuites/psxtests/psxkey01/init.c @@ -40,7 +40,7 @@ void *POSIX_Init( /* get id of this thread */ Init_id = pthread_self(); - printf( "Init's ID is 0x%08x\n", Init_id ); + printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id ); Allocate_majority_of_workspace(84); diff --git a/testsuites/psxtests/psxkey01/task.c b/testsuites/psxtests/psxkey01/task.c index 00d9249ca3..9a81ec85a5 100644 --- a/testsuites/psxtests/psxkey01/task.c +++ b/testsuites/psxtests/psxkey01/task.c @@ -29,7 +29,7 @@ void *Task_1( int status; uint32_t *key_data; - printf( "Thread 0x%08x\n", id ); + printf( "Thread 0x%08" PRIxpthread_t "\n", id ); printf( "Task_1: Setting the key to %d\n", 1 ); status = pthread_setspecific( Key_id[0], (void *)&Data_array[ 1 ] ); if ( status ) |