Changeset 735efe7 in rtems


Ignore:
Timestamp:
Mar 20, 2015, 3:43:19 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
54bfbe0
Parents:
4727585
git-author:
Joel Sherrill <joel.sherrill@…> (03/20/15 15:43:19)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:27)
Message:

capture/capture_support.c: Fix printf() warning and formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/capture/capture_support.c

    r4727585 r735efe7  
    6969
    7070  fprintf (stdout, "%5" PRIu32 ":%02" PRIu32 ":%02" PRIu32".%09" PRIu32,
    71                   hours, minutes, seconds, nanosecs);
     71             hours, minutes, seconds, nanosecs);
    7272}
    7373
     
    183183
    184184    /* Print the record */
    185     if (csv)
    186       fprintf (stdout, "%03" PRIu32 ",%08" PRIu32 ",%03" PRIu32
    187                    ",%03" PRIu32 ",%04" PRIx32 ",%" PRId64 "\n",
    188                  cpu, rec_out->task_id,
    189                  (rec_out->events >> RTEMS_CAPTURE_REAL_PRIORITY_EVENT) & 0xff,
    190                  (rec_out->events >> RTEMS_CAPTURE_CURR_PRIORITY_EVENT) & 0xff,
    191                  (rec_out->events >> RTEMS_CAPTURE_EVENT_START),
    192                  (uint64_t) rec_out->time);
    193     else {
     185    if (csv) {
     186      fprintf(
     187        stdout,
     188        "%03" PRIu32 ",%08" PRIu32 ",%03" PRIu32
     189           ",%03" PRIu32 ",%04" PRIx32 ",%" PRId64 "\n",
     190        cpu,
     191        (uint32_t) rec_out->task_id,
     192        (rec_out->events >> RTEMS_CAPTURE_REAL_PRIORITY_EVENT) & 0xff,
     193        (rec_out->events >> RTEMS_CAPTURE_CURR_PRIORITY_EVENT) & 0xff,
     194        (rec_out->events >> RTEMS_CAPTURE_EVENT_START),
     195        (uint64_t) rec_out->time
     196      );
     197    } else {
    194198      if ((rec_out->events >> RTEMS_CAPTURE_EVENT_START) == 0)
    195199          rtems_capture_print_record_task(cpu, rec_out );
Note: See TracChangeset for help on using the changeset viewer.