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 /cpukit/libmisc/monitor/mon-editor.c | |
parent | 0104056056a3946d17e1d000f24b64acc0ac99d1 (diff) |
monitor: Replace puts() with proper fprintf()
Diffstat (limited to 'cpukit/libmisc/monitor/mon-editor.c')
-rw-r--r-- | cpukit/libmisc/monitor/mon-editor.c | 4 |
1 files changed, 2 insertions, 2 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'); } |