corrected printf format to avoid warning

This commit is contained in:
Joel Sherrill
1997-04-02 16:26:39 +00:00
parent 892a536da9
commit 51f5d64cf4
14 changed files with 22 additions and 22 deletions

View File

@@ -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,

View File

@@ -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 );

View File

@@ -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 );

View File

@@ -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 );