Ignore:
Timestamp:
Apr 17, 2004, 8:12:02 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8b96149
Parents:
0fdc099
Message:

2004-04-17 Ralf Corsepius <ralf_corsepius@…>

  • libmisc/capture/capture-cli.c, libmisc/cpuuse/cpuuse.c, libmisc/dumpbuf/dumpbuf.c, libmisc/fsmount/fsmount.c, libmisc/monitor/mon-command.c, libmisc/monitor/mon-config.c, libmisc/monitor/mon-dname.c, libmisc/monitor/mon-driver.c, libmisc/monitor/mon-extension.c, libmisc/monitor/mon-itask.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-mpci.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-queue.c, libmisc/monitor/mon-symbols.c, libmisc/monitor/mon-task.c, libmisc/rtmonuse/rtmonuse.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/stackchk/check.c, libmisc/untar/untar.c: Use fprintf(stdout,...) instead of printf.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-prmisc.c

    r0fdc099 r714f06c  
    2323rtems_monitor_separator(void)
    2424{
    25     printf("------------------------------------------------------------------------------\n");
     25    fprintf(stdout,"------------------------------------------------------------------------------\n");
    2626}
    2727
     
    3939        pad_length = destination_column - current_column;
    4040
    41     return printf("%*s", pad_length, "");
     41    return fprintf(stdout,"%*s", pad_length, "");
    4242}
    4343
     
    4646{
    4747    if (isprint(ch))
    48         return printf("%c", ch);
     48        return fprintf(stdout,"%c", ch);
    4949    else
    50         return printf("%02x", ch);
     50        return fprintf(stdout,"%02x", ch);
    5151}
    5252
     
    5454rtems_monitor_dump_decimal(uint32_t   num)
    5555{
    56     return printf("%4d", num);
     56    return fprintf(stdout,"%4d", num);
    5757}
    5858
     
    6060rtems_monitor_dump_hex(uint32_t   num)
    6161{
    62     return printf("0x%x", num);
     62    return fprintf(stdout,"0x%x", num);
    6363}
    6464
     
    7878        {
    7979            if (length)
    80                 length += printf("%s", separator);
     80                length += fprintf(stdout,"%s", separator);
    8181
    8282            name = rtems_assoc_name_by_local(ap, b);
    8383
    8484            if (name)
    85                 length += printf("%s", name);
     85                length += fprintf(stdout,"%s", name);
    8686            else
    87                 length += printf("0x%x", b);
     87                length += fprintf(stdout,"0x%x", b);
    8888        }
    8989
     
    9494rtems_monitor_dump_id(rtems_id id)
    9595{
    96     return printf("%08x", id);
     96    return fprintf(stdout,"%08x", id);
    9797}
    9898
     
    122122rtems_monitor_dump_priority(rtems_task_priority priority)
    123123{
    124     return printf("%3d", priority);
     124    return fprintf(stdout,"%3d", priority);
    125125}
    126126
     
    153153
    154154    if (state == STATES_READY)  /* assoc doesn't deal with this as it is 0 */
    155         length += printf("READY");
     155        length += fprintf(stdout,"READY");
    156156
    157157    length += rtems_monitor_dump_assoc_bitfield(rtems_monitor_state_assoc,
     
    176176
    177177    if (attributes == RTEMS_DEFAULT_ATTRIBUTES)  /* value is 0 */
    178         length += printf("DEFAULT");
     178        length += fprintf(stdout,"DEFAULT");
    179179
    180180    length += rtems_monitor_dump_assoc_bitfield(rtems_monitor_attribute_assoc,
     
    197197
    198198    if (modes == RTEMS_DEFAULT_MODES)  /* value is 0 */
    199         length += printf("P:T:nA");
     199        length += fprintf(stdout,"P:T:nA");
    200200
    201201    length += rtems_monitor_dump_assoc_bitfield(rtems_monitor_modes_assoc,
     
    247247
    248248    if (events == EVENT_SETS_NONE_PENDING)  /* value is 0 */
    249         length += printf("NONE");
     249        length += fprintf(stdout,"NONE");
    250250
    251251    length += rtems_monitor_dump_assoc_bitfield(rtems_monitor_events_assoc,
     
    263263    for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
    264264        if (notepad[i])
    265             length += printf("%d: 0x%x ", i, notepad[i]);
    266 
    267     return length;
    268 }
     265            length += fprintf(stdout,"%d: 0x%x ", i, notepad[i]);
     266
     267    return length;
     268}
Note: See TracChangeset for help on using the changeset viewer.