monitor: Replace puts() with proper fprintf()

This commit is contained in:
Sebastian Huber
2014-12-03 13:00:59 +01:00
parent 0104056056
commit 8905201985
2 changed files with 3 additions and 3 deletions

View File

@@ -265,7 +265,7 @@ rtems_monitor_line_editor (
switch (c)
{
case KEYS_END:
puts(buffer + pos);
fprintf(stdout, "%s", buffer + pos);
pos = (int) strlen (buffer);
break;
@@ -428,7 +428,7 @@ rtems_monitor_line_editor (
int ch, bs;
for (ch = end; ch > pos; ch--)
buffer[ch] = buffer[ch - 1];
puts(buffer + pos);
fprintf(stdout, "%s", buffer + pos);
for (bs = 0; bs < (end - pos + 1); bs++)
putchar ('\b');
}

View File

@@ -103,7 +103,7 @@ rtems_monitor_dump_name(rtems_id id)
rtems_object_get_name( id, sizeof(name_buffer), name_buffer );
return puts( name_buffer );
return fprintf(stdout, "%s", name_buffer);
}
int