diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-11-30 13:24:59 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-11-30 13:24:59 +0000 |
commit | 8bca4fcaa4938496706d4ca7f7d85d4190eb4ccf (patch) | |
tree | 254fee72ed6ee11bc357553cb3993e1f5b4b200c | |
parent | Obtain output semaphore before drain output during close to prevent an infini... (diff) | |
download | rtems-8bca4fcaa4938496706d4ca7f7d85d4190eb4ccf.tar.bz2 |
Added format string to fprintf().
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libmisc/shell/shell.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 967bbcca98..e207a4e61c 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -36,6 +36,10 @@ 2009-11-30 Sebastian Huber <sebastian.huber@embedded-brains.de> + * libmisc/shell/shell.c: Added format string to fprintf(). + +2009-11-30 Sebastian Huber <sebastian.huber@embedded-brains.de> + * rtems/include/rtems/rtems/timer.h: Added timer server control block Timer_server_Control. Removed _Timer_Server thread pointer. Added _Timer_server pointer to the default timer server control block. diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c index b87b79f01e..b17098098d 100644 --- a/cpukit/libmisc/shell/shell.c +++ b/cpukit/libmisc/shell/shell.c @@ -162,7 +162,7 @@ int rtems_shell_line_editor( { case RTEMS_SHELL_KEYS_END: if (output) - fprintf(out,line + col); + fprintf(out, "%s", line + col); col = (int) strlen (line); break; @@ -278,7 +278,7 @@ int rtems_shell_line_editor( case 5:/*Control-e*/ if (output) - fprintf(out,line + col); + fprintf(out, "%s", line + col); col = (int) strlen (line); break; @@ -364,7 +364,7 @@ int rtems_shell_line_editor( for (ch = end + 1; ch > col; ch--) line[ch] = line[ch - 1]; if (output) { - fprintf(out, line + col); + fprintf(out, "%s", line + col); for (bs = 0; bs < (end - col + 1); bs++) fputc('\b', out); } |