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

View File

@@ -52,9 +52,9 @@ TEST_EXTERN rtems_unsigned8 Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
TEST_EXTERN rtems_unsigned8 Area_2[274] CPU_STRUCTURE_ALIGNMENT;
#define Put_address_from_area_1( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
#define Put_address_from_area_2( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
/* end of include file */

View File

@@ -71,15 +71,15 @@ TEST_EXTERN rtems_unsigned8 Area_4[8192] CPU_STRUCTURE_ALIGNMENT;
#define BASE_PRIORITY 140
#define Put_address_from_area_1( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
#define Put_address_from_area_2( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
#define Put_address_from_area_3( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
#define Put_address_from_area_4( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
/* end of include file */

View File

@@ -51,6 +51,6 @@ TEST_EXTERN rtems_unsigned8 Area_1[64000] CPU_STRUCTURE_ALIGNMENT;
#define BASE_PRIORITY 140
#define Put_address_from_area_1( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
/* end of include file */

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

View File

@@ -52,9 +52,9 @@ TEST_EXTERN rtems_unsigned8 Area_1[4096] CPU_STRUCTURE_ALIGNMENT;
TEST_EXTERN rtems_unsigned8 Area_2[274] CPU_STRUCTURE_ALIGNMENT;
#define Put_address_from_area_1( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
#define Put_address_from_area_2( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
/* end of include file */

View File

@@ -71,15 +71,15 @@ TEST_EXTERN rtems_unsigned8 Area_4[8192] CPU_STRUCTURE_ALIGNMENT;
#define BASE_PRIORITY 140
#define Put_address_from_area_1( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
#define Put_address_from_area_2( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
#define Put_address_from_area_3( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
#define Put_address_from_area_4( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
/* end of include file */

View File

@@ -51,6 +51,6 @@ TEST_EXTERN rtems_unsigned8 Area_1[64000] CPU_STRUCTURE_ALIGNMENT;
#define BASE_PRIORITY 140
#define Put_address_from_area_1( _to_be_printed ) \
printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
/* end of include file */