aboutsummaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorJean-Christian de Rivaz <jcamdr70@gmail.com>2018-12-16 20:15:33 +0100
committerTomas Vanek <vanekt@fbl.cz>2018-12-25 19:01:48 +0000
commit44009186cfabe77fb260af221ebd6272d1e78f44 (patch)
treeab96fcffc1eef2766f84027568553a280a38f8f0 /src/helper
parenta15c11d7d08566dc7005ed7304c5d3f2c425b981 (diff)
downloadriscv-openocd-44009186cfabe77fb260af221ebd6272d1e78f44.zip
riscv-openocd-44009186cfabe77fb260af221ebd6272d1e78f44.tar.gz
riscv-openocd-44009186cfabe77fb260af221ebd6272d1e78f44.tar.bz2
command: Log the failed command name
Change-Id: I03938a845110002755636a9514b17a213bf1cc72 Signed-off-by: Jean-Christian de Rivaz <jcamdr70@gmail.com> Reviewed-on: http://openocd.zylin.com/4808 Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Tested-by: jenkins
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/command.c b/src/helper/command.c
index f8b731e..35c4486 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -639,7 +639,7 @@ static int run_command(struct command_context *context,
/* we do not print out an error message because the command *should*
* have printed out an error
*/
- LOG_DEBUG("Command failed with error code %d", retval);
+ LOG_DEBUG("Command '%s' failed with error code %d", c->name, retval);
}
return retval;