mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-21 04:14:26 +08:00
corrected printf format to avoid warning
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#include "system.h"
|
||||
#include <errno.h>
|
||||
|
||||
#define MUTEX_BAD_ID -2
|
||||
#define MUTEX_BAD_ID 0xfffffffe
|
||||
|
||||
void Print_mutexattr(
|
||||
char *msg,
|
||||
|
||||
@@ -94,7 +94,7 @@ void *POSIX_Init(
|
||||
/* switch to task 1 */
|
||||
|
||||
key_data = pthread_getspecific( Key_id );
|
||||
printf( "Init: Got the key value of %d\n",
|
||||
printf( "Init: Got the key value of %ld\n",
|
||||
(rtems_unsigned32 *)key_data - Data_array );
|
||||
|
||||
remaining = sleep( 3 );
|
||||
|
||||
@@ -36,7 +36,7 @@ void *Task_1(
|
||||
assert( !status );
|
||||
|
||||
key_data = pthread_getspecific( Key_id );
|
||||
printf( "Task_1: Got the key value of %d\n",
|
||||
printf( "Task_1: Got the key value of %ld\n",
|
||||
(rtems_unsigned32 *)key_data - Data_array );
|
||||
if ( status )
|
||||
printf( "status = %d\n", status );
|
||||
|
||||
@@ -37,7 +37,7 @@ void *Task_2(
|
||||
assert( !status );
|
||||
|
||||
key_data = pthread_getspecific( Key_id );
|
||||
printf( "Task_2: Got the key value of %d\n",
|
||||
printf( "Task_2: Got the key value of %ld\n",
|
||||
(rtems_unsigned32 *)key_data - Data_array );
|
||||
if ( status )
|
||||
printf( "status = %d\n", status );
|
||||
|
||||
Reference in New Issue
Block a user