diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-03 13:00:59 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-03 13:03:13 +0100 |
commit | 89052019858bc64be66f226294d67f5434b02703 (patch) | |
tree | 27eceb085ee41d39702dd1caf18473081569cde9 | |
parent | 0104056056a3946d17e1d000f24b64acc0ac99d1 (diff) |
monitor: Replace puts() with proper fprintf()
-rw-r--r-- | cpukit/libmisc/monitor/mon-editor.c | 4 | ||||
-rw-r--r-- | cpukit/libmisc/monitor/mon-prmisc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libmisc/monitor/mon-editor.c b/cpukit/libmisc/monitor/mon-editor.c index e7a3ae4e8e..db1173762b 100644 --- a/cpukit/libmisc/monitor/mon-editor.c +++ b/cpukit/libmisc/monitor/mon-editor.c @@ -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'); } diff --git a/cpukit/libmisc/monitor/mon-prmisc.c b/cpukit/libmisc/monitor/mon-prmisc.c index 8607974815..e519447ac3 100644 --- a/cpukit/libmisc/monitor/mon-prmisc.c +++ b/cpukit/libmisc/monitor/mon-prmisc.c @@ -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 |