Changeset 51f5d64c in rtems


Ignore:
Timestamp:
Apr 2, 1997, 4:26:39 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1c24fe7
Parents:
892a536d
Message:

corrected printf format to avoid warning

Files:
14 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psx05/init.c

    r892a536d r51f5d64c  
    1515#include <errno.h>
    1616
    17 #define MUTEX_BAD_ID -2
     17#define MUTEX_BAD_ID 0xfffffffe
    1818
    1919void Print_mutexattr(
  • c/src/tests/psxtests/psx06/init.c

    r892a536d r51f5d64c  
    9595
    9696  key_data = pthread_getspecific( Key_id );
    97   printf( "Init: Got the key value of %d\n",
     97  printf( "Init: Got the key value of %ld\n",
    9898          (rtems_unsigned32 *)key_data - Data_array );
    9999
  • c/src/tests/psxtests/psx06/task.c

    r892a536d r51f5d64c  
    3737 
    3838  key_data = pthread_getspecific( Key_id );
    39   printf( "Task_1: Got the key value of %d\n",
     39  printf( "Task_1: Got the key value of %ld\n",
    4040          (rtems_unsigned32 *)key_data - Data_array );
    4141  if ( status )
  • c/src/tests/psxtests/psx06/task2.c

    r892a536d r51f5d64c  
    3838 
    3939  key_data = pthread_getspecific( Key_id );
    40   printf( "Task_2: Got the key value of %d\n",
     40  printf( "Task_2: Got the key value of %ld\n",
    4141          (rtems_unsigned32 *)key_data - Data_array );
    4242  if ( status )
  • c/src/tests/sptests/sp15/system.h

    r892a536d r51f5d64c  
    5353 
    5454#define Put_address_from_area_1( _to_be_printed ) \
    55    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
     55   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
    5656 
    5757#define Put_address_from_area_2( _to_be_printed ) \
    58    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
     58   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
    5959 
    6060/* end of include file */
  • c/src/tests/sptests/sp16/system.h

    r892a536d r51f5d64c  
    7272
    7373#define Put_address_from_area_1( _to_be_printed ) \
    74    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
     74   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
    7575
    7676#define Put_address_from_area_2( _to_be_printed ) \
    77    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
     77   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
    7878
    7979#define Put_address_from_area_3( _to_be_printed ) \
    80    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
     80   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
    8181
    8282#define Put_address_from_area_4( _to_be_printed ) \
    83    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
     83   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
    8484
    8585/* end of include file */
  • c/src/tests/sptests/sp25/system.h

    r892a536d r51f5d64c  
    5252 
    5353#define Put_address_from_area_1( _to_be_printed ) \
    54    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
     54   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
    5555 
    5656/* end of include file */
  • testsuites/psxtests/psx05/init.c

    r892a536d r51f5d64c  
    1515#include <errno.h>
    1616
    17 #define MUTEX_BAD_ID -2
     17#define MUTEX_BAD_ID 0xfffffffe
    1818
    1919void Print_mutexattr(
  • testsuites/psxtests/psx06/init.c

    r892a536d r51f5d64c  
    9595
    9696  key_data = pthread_getspecific( Key_id );
    97   printf( "Init: Got the key value of %d\n",
     97  printf( "Init: Got the key value of %ld\n",
    9898          (rtems_unsigned32 *)key_data - Data_array );
    9999
  • testsuites/psxtests/psx06/task.c

    r892a536d r51f5d64c  
    3737 
    3838  key_data = pthread_getspecific( Key_id );
    39   printf( "Task_1: Got the key value of %d\n",
     39  printf( "Task_1: Got the key value of %ld\n",
    4040          (rtems_unsigned32 *)key_data - Data_array );
    4141  if ( status )
  • testsuites/psxtests/psx06/task2.c

    r892a536d r51f5d64c  
    3838 
    3939  key_data = pthread_getspecific( Key_id );
    40   printf( "Task_2: Got the key value of %d\n",
     40  printf( "Task_2: Got the key value of %ld\n",
    4141          (rtems_unsigned32 *)key_data - Data_array );
    4242  if ( status )
  • testsuites/sptests/sp15/system.h

    r892a536d r51f5d64c  
    5353 
    5454#define Put_address_from_area_1( _to_be_printed ) \
    55    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
     55   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
    5656 
    5757#define Put_address_from_area_2( _to_be_printed ) \
    58    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
     58   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
    5959 
    6060/* end of include file */
  • testsuites/sptests/sp16/system.h

    r892a536d r51f5d64c  
    7272
    7373#define Put_address_from_area_1( _to_be_printed ) \
    74    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
     74   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
    7575
    7676#define Put_address_from_area_2( _to_be_printed ) \
    77    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
     77   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 )
    7878
    7979#define Put_address_from_area_3( _to_be_printed ) \
    80    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
     80   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 )
    8181
    8282#define Put_address_from_area_4( _to_be_printed ) \
    83    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
     83   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 )
    8484
    8585/* end of include file */
  • testsuites/sptests/sp25/system.h

    r892a536d r51f5d64c  
    5252 
    5353#define Put_address_from_area_1( _to_be_printed ) \
    54    printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
     54   printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 )
    5555 
    5656/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.