diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-01-03 13:30:28 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-01-03 13:33:27 +0100 |
commit | c69553cbc51770f61cf3b9225d46d058fa2544d0 (patch) | |
tree | 07aa7f6d5bc1861cc926e2359034ef42f17dc46a /src/helper | |
parent | 1795239cfda77315ea2f4fbc028e7a411d13a7d0 (diff) | |
download | openocd+libswd-c69553cbc51770f61cf3b9225d46d058fa2544d0.tar.gz openocd+libswd-c69553cbc51770f61cf3b9225d46d058fa2544d0.tar.bz2 openocd+libswd-c69553cbc51770f61cf3b9225d46d058fa2544d0.tar.xz openocd+libswd-c69553cbc51770f61cf3b9225d46d058fa2544d0.zip |
error handling: the error number is not part of the user interface
Do not propagate error number to user. This is for internal
programming purposes only. Error messages to the user is
reported as text via LOG_ERROR().
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/ioutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c index d0f86a9d..60064abc 100644 --- a/src/helper/ioutil.c +++ b/src/helper/ioutil.c @@ -133,7 +133,7 @@ COMMAND_HANDLER(handle_cat_command) } else { - command_print(CMD_CTX, "%s not found %d", CMD_ARGV[0], retval); + command_print(CMD_CTX, "%s not found", CMD_ARGV[0]); } return ERROR_OK; @@ -270,7 +270,7 @@ COMMAND_HANDLER(handle_cp_command) command_print(CMD_CTX, "Copied %s to %s", CMD_ARGV[0], CMD_ARGV[1]); } else { - command_print(CMD_CTX, "Failed: %d", retval); + command_print(CMD_CTX, "copy failed"); } if (data != NULL) |