Changeset 8a1ae87 in rtems


Ignore:
Timestamp:
Aug 29, 2006, 9:55:30 PM (14 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
48b1e29
Parents:
0337a9c5
Message:

2006-08-29 Joel Sherrill <joel@…>

  • libmisc/capture/capture-cli.c: Remove printf format warnings.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r0337a9c5 r8a1ae87  
     12006-08-29      Joel Sherrill <joel@OARcorp.com>
     2
     3        * libmisc/capture/capture-cli.c: Remove printf format warnings.
     4
    152006-08-29      Joel Sherrill <joel@OARcorp.com>
    26
  • cpukit/libmisc/capture/capture-cli.c

    r0337a9c5 r8a1ae87  
    3333#include <stdio.h>
    3434#include <string.h>
     35#include <inttypes.h>
    3536
    3637#include <rtems.h>
     
    251252  {
    252253    rtems_task_priority priority;
    253     int                 stack_used;
    254     int                 time_used;
     254    int32_t             stack_used;
     255    int32_t             time_used;
    255256
    256257    stack_used = rtems_capture_task_stack_usage (task) * 100;
     
    292293              (rtems_capture_task_control_flags (task) & RTEMS_CAPTURE_WATCH ? 'w' : '+') : '-',
    293294              rtems_capture_watch_global_on () ? 'g' : '-');
    294     fprintf(stdout," %3i%% %3i%% (%i)\n",
     295    fprintf(stdout," %3" PRId32 "%% %3" PRId32 "%% (%" PRIu32 ")\n",
    295296            stack_used, time_used, rtems_capture_task_ticks (task));
    296297
     
    543544  rtems_task_priority      floor = rtems_capture_watch_get_floor ();
    544545
    545   fprintf(stdout,"watch priority ceiling is %i\n", ceiling);
    546   fprintf(stdout,"watch priority floor is %i\n", floor);
     546  fprintf(stdout,"watch priority ceiling is %" PRId32 "\n", ceiling);
     547  fprintf(stdout,"watch priority floor is %" PRId32 "\n", floor);
    547548  fprintf(stdout,"global watch is %s\n",
    548549          rtems_capture_watch_global_on () ? "enabled" : "disabled");
    549   fprintf(stdout,"total %d\n", rtems_capture_control_count ());
     550  fprintf(stdout,"total %" PRId32 "\n", rtems_capture_control_count ());
    550551
    551552  while (control)
     
    938939  }
    939940
    940   fprintf(stdout,"watch ceiling is %i.\n", priority);
     941  fprintf(stdout,"watch ceiling is %" PRId32 ".\n", priority);
    941942}
    942943
     
    989990  }
    990991
    991   fprintf(stdout,"watch floor is %i.\n", priority);
     992  fprintf(stdout,"watch floor is %" PRId32 ".\n", priority);
    992993}
    993994
     
    12281229    {
    12291230      if (csv)
    1230         fprintf(stdout,"%08x,%03d,%03d,%04x,%d,%d\n",
    1231                 (uint32_t  ) rec->task,
     1231        fprintf(stdout,"%08" PRIx32 ",%03" PRIu32
     1232                   ",%03" PRIu32 ",%04" PRIx32 ",%" PRId32 ",%" PRId32 "\n",
     1233                (uint32_t) rec->task,
    12321234                (rec->events >> RTEMS_CAPTURE_REAL_PRIORITY_EVENT) & 0xff,
    12331235                (rec->events >> RTEMS_CAPTURE_CURR_PRIORITY_EVENT) & 0xff,
     
    12551257            fprintf(stdout," ");
    12561258            rtems_monitor_dump_name (rtems_capture_task_name (rec->task));
    1257             fprintf(stdout," %3i %3i %s\n",
     1259            fprintf(stdout," %3" PRId32 " %3" PRId32 " %s\n",
    12581260                    (rec->events >> RTEMS_CAPTURE_REAL_PRIORITY_EVENT) & 0xff,
    12591261                    (rec->events >> RTEMS_CAPTURE_CURR_PRIORITY_EVENT) & 0xff,
Note: See TracChangeset for help on using the changeset viewer.