From 39615f481a74f1d4d612b734ea8a126e4e43b407 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 27 Oct 2009 14:10:54 +0000 Subject: Use PRIxpthread_t to print pthread_t's. --- testsuites/psxtests/psxkey01/init.c | 2 +- testsuites/psxtests/psxkey01/task.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/psxtests/psxkey01') 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 ) -- cgit v1.2.3