Changeset 39615f4 in rtems


Ignore:
Timestamp:
Oct 27, 2009, 2:10:54 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
e1a7627
Parents:
749eae9
Message:

Use PRIxpthread_t to print pthread_t's.

Location:
testsuites/psxtests
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psx01/init.c

    r749eae9 r39615f4  
    4646
    4747  Init_id = pthread_self();
    48   printf( "Init: ID is 0x%08x\n", Init_id );
     48  printf( "Init: ID is 0x%08" PRIxpthread_t "\n", Init_id );
    4949
    5050  /* exercise get minimum priority */
  • testsuites/psxtests/psx01/task.c

    r749eae9 r39615f4  
    4949
    5050  Task_id = pthread_self();
    51   printf( "Task_1: ID is 0x%08x\n", Task_id );
     51  printf( "Task_1: ID is 0x%08" PRIxpthread_t "\n", Task_id );
    5252
    5353  /* exercise pthread_equal */
  • testsuites/psxtests/psx02/init.c

    r749eae9 r39615f4  
    5252
    5353  Init_id = pthread_self();
    54   printf( "Init's ID is 0x%08x\n", Init_id );
     54  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    5555
    5656  /* install a signal handler */
  • testsuites/psxtests/psx03/init.c

    r749eae9 r39615f4  
    2525  Signal_count++;
    2626  printf(
    27     "Signal: %d caught by 0x%x (%d)\n",
     27    "Signal: %d caught by 0x%" PRIxpthread_t " (%d)\n",
    2828    signo,
    2929    pthread_self(),
     
    5454
    5555  Init_id = pthread_self();
    56   printf( "Init's ID is 0x%08x\n", Init_id );
     56  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    5757
    5858  /* install a signal handler */
  • testsuites/psxtests/psx04/init.c

    r749eae9 r39615f4  
    3030  Signal_count++;
    3131  printf(
    32     "Signal: %d caught by 0x%x (%d)\n",
     32    "Signal: %d caught by 0x%" PRIxpthread_t " (%d)\n",
    3333    signo,
    3434    pthread_self(),
     
    4646  Signal_count++;
    4747  printf(
    48     "Signal_info: %d caught by 0x%x (%d) si_signo= %d si_code= %d value= %d\n",
     48    "Signal_info: %d caught by 0x%" PRIxpthread_t " (%d) si_signo= %d si_code= %d value= %d\n",
    4949    signo,
    5050    pthread_self(),
     
    7979
    8080  Init_id = pthread_self();
    81   printf( "Init's ID is 0x%08x\n", Init_id );
     81  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    8282
    8383  /* generate some easy error cases */
  • testsuites/psxtests/psx05/init.c

    r749eae9 r39615f4  
    136136
    137137  Init_id = pthread_self();
    138   printf( "Init's ID is 0x%08x\n", Init_id );
     138  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    139139
    140140  /* tes pthread_mutex_attr_init */
  • testsuites/psxtests/psx06/init.c

    r749eae9 r39615f4  
    4848
    4949  Init_id = pthread_self();
    50   printf( "Init's ID is 0x%08x\n", Init_id );
     50  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    5151
    5252  /* create a couple of threads */
  • testsuites/psxtests/psx07/init.c

    r749eae9 r39615f4  
    7979
    8080  Init_id = pthread_self();
    81   printf( "Init's ID is 0x%08x\n", Init_id );
     81  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    8282
    8383  /* exercise init and destroy */
  • testsuites/psxtests/psx08/init.c

    r749eae9 r39615f4  
    3030
    3131  Init_id = pthread_self();
    32   printf( "Init's ID is 0x%08x\n", Init_id );
     32  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    3333
    3434  puts( "Init: pthread_detach - ESRCH (invalid id)" );
  • testsuites/psxtests/psx09/init.c

    r749eae9 r39615f4  
    6767
    6868  Init_id = pthread_self();
    69   printf( "Init's ID is 0x%08x\n", Init_id );
     69  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    7070
    7171  /* try to use this thread as a sporadic server */
  • testsuites/psxtests/psx10/task.c

    r749eae9 r39615f4  
    2929
    3030  Task_id = pthread_self();
    31   printf( "Task_1: ID is 0x%08x\n", Task_id );
     31  printf( "Task_1: ID is 0x%08" PRIxpthread_t "\n", Task_id );
    3232
    3333  status = pthread_mutex_init( &Mutex_id, NULL );
  • testsuites/psxtests/psx10/task2.c

    r749eae9 r39615f4  
    2727
    2828  Task_id = pthread_self();
    29   printf( "Task_2: ID is 0x%08x\n", Task_id );
     29  printf( "Task_2: ID is 0x%08" PRIxpthread_t "\n", Task_id );
    3030
    3131  status = pthread_mutex_lock( &Mutex_id );
  • testsuites/psxtests/psx10/task3.c

    r749eae9 r39615f4  
    2727
    2828  Task_id = pthread_self();
    29   printf( "Task_3: ID is 0x%08x\n", Task_id );
     29  printf( "Task_3: ID is 0x%08" PRIxpthread_t "\n", Task_id );
    3030
    3131  status = pthread_mutex_lock( &Mutex_id );
  • testsuites/psxtests/psx11/init.c

    r749eae9 r39615f4  
    3737
    3838  Init_id = pthread_self();
    39   printf( "Init's ID is 0x%08x\n", Init_id );
     39  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    4040
    4141  /* exercise pthread_setschedparam */
  • testsuites/psxtests/psx12/init.c

    r749eae9 r39615f4  
    5757
    5858  Init_id = pthread_self();
    59   printf( "Init's ID is 0x%08x\n", Init_id );
     59  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    6060
    6161  /* invalid scheduling policy error */
  • testsuites/psxtests/psxalarm01/init.c

    r749eae9 r39615f4  
    3030  Signal_count++;
    3131  printf(
    32     "Signal: %d caught by 0x%x (%d)\n",
     32    "Signal: %d caught by 0x%" PRIxpthread_t " (%d)\n",
    3333    signo,
    3434    pthread_self(),
     
    4646  Signal_count++;
    4747  printf(
    48     "Signal_info: %d caught by 0x%x (%d) si_signo= %d si_code= %d value= %d\n",
     48    "Signal_info: %d caught by 0x%" PRIxpthread_t " (%d) si_signo= %d si_code= %d value= %d\n",
    4949    signo,
    5050    pthread_self(),
  • testsuites/psxtests/psxbarrier01/test.c

    r749eae9 r39615f4  
    3030  int       status;
    3131
    32   printf( "pthread_barrier_wait( &Barrier ) for thread 0x%08x\n", id );
     32  printf( "pthread_barrier_wait( &Barrier ) for thread 0x%08" PRIxpthread_t "\n", id );
    3333  status = pthread_barrier_wait( &Barrier );
    34   printf( "pthread_barrier_wait - 0x%08x released\n", id );
     34  printf( "pthread_barrier_wait - 0x%08" PRIxpthread_t " released\n", id );
    3535  assert( (status == 0) || (status == PTHREAD_BARRIER_SERIAL_THREAD) );
    3636
  • testsuites/psxtests/psxkey01/init.c

    r749eae9 r39615f4  
    4141
    4242  Init_id = pthread_self();
    43   printf( "Init's ID is 0x%08x\n", Init_id );
     43  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    4444
    4545  Allocate_majority_of_workspace(84);
  • testsuites/psxtests/psxkey01/task.c

    r749eae9 r39615f4  
    3030  uint32_t   *key_data;
    3131
    32   printf( "Thread 0x%08x\n", id );
     32  printf( "Thread 0x%08" PRIxpthread_t "\n", id );
    3333  printf( "Task_1: Setting the key to %d\n", 1 );
    3434  status = pthread_setspecific( Key_id[0], (void *)&Data_array[ 1 ] );
  • testsuites/psxtests/psxmsgq02/init.c

    r749eae9 r39615f4  
    4343
    4444  Init_id = pthread_self();
    45   printf( "Init's ID is 0x%08x\n", Init_id );
     45  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    4646
    4747  Allocate_majority_of_workspace(NAME_MAX);
  • testsuites/psxtests/psxsignal01/init.c

    r749eae9 r39615f4  
    2727  Signal_count++;
    2828  printf(
    29     "Handler_1: Signal: %d caught by 0x%x (%d)\n",
     29    "Handler_1: Signal: %d caught by 0x%" PRIxpthread_t " (%d)\n",
    3030    signo,
    3131    pthread_self(),
     
    4141  Signal_count++;
    4242  printf(
    43     "Signal: %d caught by 0x%x (%d)\n",
     43    "Signal: %d caught by 0x%"PRIxpthread_t " (%d)\n",
    4444    signo,
    4545    pthread_self(),
     
    5757  Signal_count++;
    5858  printf(
    59     "Signal_info: %d caught by 0x%x (%d) si_signo= %d si_code= %d value= %d\n",
     59    "Signal_info: %d caught by 0x%" PRIxpthread_t " (%d) si_signo= %d si_code= %d value= %d\n",
    6060    signo,
    6161    pthread_self(),
     
    9898
    9999  Init_id = pthread_self();
    100   printf( "Init's ID is 0x%08x\n", Init_id );
     100  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    101101
    102102  Signal_occurred = 0;
  • testsuites/psxtests/psxualarm/init.c

    r749eae9 r39615f4  
    2828  Signal_count++;
    2929  printf(
    30     "Signal: %d caught by 0x%x (%d)\n",
     30    "Signal: %d caught by 0x%" PRIxpthread_t " (%d)\n",
    3131    signo,
    3232    pthread_self(),
     
    6464
    6565  Init_id = pthread_self();
    66   printf( "Init's ID is 0x%08x\n", Init_id );
     66  printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
    6767
    6868  Signal_occurred = 0;
Note: See TracChangeset for help on using the changeset viewer.