Changeset 8905201 in rtems


Ignore:
Timestamp:
Dec 3, 2014, 12:00:59 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
4081032
Parents:
0104056
git-author:
Sebastian Huber <sebastian.huber@…> (12/03/14 12:00:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/03/14 12:03:13)
Message:

monitor: Replace puts() with proper fprintf()

Location:
cpukit/libmisc/monitor
Files:
2 edited

Legend:

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

    r0104056 r8905201  
    266266        {
    267267          case KEYS_END:
    268             puts(buffer + pos);
     268            fprintf(stdout, "%s", buffer + pos);
    269269            pos = (int) strlen (buffer);
    270270            break;
     
    429429                for (ch = end; ch > pos; ch--)
    430430                  buffer[ch] = buffer[ch - 1];
    431                 puts(buffer + pos);
     431                fprintf(stdout, "%s", buffer + pos);
    432432                for (bs = 0; bs < (end - pos + 1); bs++)
    433433                  putchar ('\b');
  • cpukit/libmisc/monitor/mon-prmisc.c

    r0104056 r8905201  
    104104    rtems_object_get_name( id, sizeof(name_buffer), name_buffer );
    105105
    106     return puts( name_buffer );
     106    return fprintf(stdout, "%s", name_buffer);
    107107}
    108108
Note: See TracChangeset for help on using the changeset viewer.