Changeset 8c1f4064 in rtems for testsuites/samples


Ignore:
Timestamp:
Nov 2, 2017, 12:56:12 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3e81d52
Parents:
0d796d6
git-author:
Sebastian Huber <sebastian.huber@…> (11/02/17 12:56:12)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/02/17 13:08:32)
Message:

tests: Use printf() instead of fprintf()

Update #3170.
Update #3199.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/capture/test1.c

    r0d796d6 r8c1f4064  
    5656
    5757  if (sc != RTEMS_SUCCESSFUL)
    58     fprintf (stdout, "error: CT1a: mutex obtain: %s\n",
    59              rtems_status_text (sc));
     58    printf ("error: CT1a: mutex obtain: %s\n", rtems_status_text (sc));
    6059
    6160  capture_wait (2500);
     
    6463
    6564  if (sc != RTEMS_SUCCESSFUL)
    66     fprintf (stdout, "error: CT1a: mutex release: %s\n",
    67              rtems_status_text (sc));
     65    printf ("error: CT1a: mutex release: %s\n", rtems_status_text (sc));
    6866
    6967  capture_CT1a_deleted = 1;
     
    9492
    9593  if (sc != RTEMS_SUCCESSFUL)
    96     fprintf (stdout, "error: CT1c: mutex obtain: %s\n",
    97              rtems_status_text (sc));
     94    printf ("error: CT1c: mutex obtain: %s\n", rtems_status_text (sc));
    9895
    9996  capture_wait (500);
     
    10299
    103100  if (sc != RTEMS_SUCCESSFUL)
    104     fprintf (stdout, "error: CT1c: mutex release: %s\n",
    105              rtems_status_text (sc));
     101    printf ("error: CT1c: mutex release: %s\n", rtems_status_text (sc));
    106102
    107103  capture_CT1c_deleted = 1;
     
    135131  if (sc != RTEMS_SUCCESSFUL)
    136132  {
    137     fprintf (stdout, "error: Test 1: cannot mutex: %s\n",
    138              rtems_status_text (sc));
     133    printf ("error: Test 1: cannot mutex: %s\n", rtems_status_text (sc));
    139134    return;
    140135  }
     
    149144  if (sc != RTEMS_SUCCESSFUL)
    150145  {
    151     fprintf (stdout, "error: Test 1: cannot create CT1a: %s\n",
    152              rtems_status_text (sc));
     146    printf ("error: Test 1: cannot create CT1a: %s\n", rtems_status_text (sc));
    153147    rtems_semaphore_delete (mutex);
    154148    return;
     
    159153  if (sc != RTEMS_SUCCESSFUL)
    160154  {
    161     fprintf (stdout, "error: Test 1: cannot start CT1a: %s\n",
    162              rtems_status_text (sc));
     155    printf ("error: Test 1: cannot start CT1a: %s\n", rtems_status_text (sc));
    163156    rtems_task_delete (id[0]);
    164157    rtems_semaphore_delete (mutex);
     
    177170  if (sc != RTEMS_SUCCESSFUL)
    178171  {
    179     fprintf (stdout, "error: Test 1: cannot create CT1b: %s\n",
    180              rtems_status_text (sc));
     172    printf ("error: Test 1: cannot create CT1b: %s\n", rtems_status_text (sc));
    181173    rtems_task_delete (id[0]);
    182174    rtems_semaphore_delete (mutex);
     
    188180  if (sc != RTEMS_SUCCESSFUL)
    189181  {
    190     fprintf (stdout, "error: Test 1: cannot start CT1b: %s\n",
    191              rtems_status_text (sc));
     182    printf ("error: Test 1: cannot start CT1b: %s\n", rtems_status_text (sc));
    192183    rtems_task_delete (id[1]);
    193184    rtems_task_delete (id[0]);
     
    207198  if (sc != RTEMS_SUCCESSFUL)
    208199  {
    209     fprintf (stdout, "error: Test 1: cannot create CT1c: %s\n",
    210              rtems_status_text (sc));
     200    printf ("error: Test 1: cannot create CT1c: %s\n", rtems_status_text (sc));
    211201    rtems_task_delete (id[1]);
    212202    rtems_task_delete (id[0]);
     
    219209  if (sc != RTEMS_SUCCESSFUL)
    220210  {
    221     fprintf (stdout, "error: Test 1: cannot start CT1c: %s\n",
    222              rtems_status_text (sc));
     211    printf ("error: Test 1: cannot start CT1c: %s\n", rtems_status_text (sc));
    223212    rtems_task_delete (id[2]);
    224213    rtems_task_delete (id[1]);
     
    239228  if (!loops)
    240229  {
    241     fprintf (stdout, "error: Test 1: test tasks did not delete\n");
     230    printf ("error: Test 1: test tasks did not delete\n");
    242231    rtems_task_delete (id[2]);
    243232    rtems_task_delete (id[1]);
     
    247236  sc = rtems_semaphore_delete (mutex);
    248237  if (sc != RTEMS_SUCCESSFUL)
    249     fprintf (stdout, "error: Test 1: deleting the mutex: %s\n",
    250              rtems_status_text (sc));
     238    printf ("error: Test 1: deleting the mutex: %s\n", rtems_status_text (sc));
    251239}
    252240
Note: See TracChangeset for help on using the changeset viewer.