From: Jean-Christian de Rivaz Date: Sun, 16 Dec 2018 19:15:33 +0000 (+0100) Subject: command: Log the failed command name X-Git-Tag: v0.11.0-rc1~897 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=44009186cfabe77fb260af221ebd6272d1e78f44 command: Log the failed command name Change-Id: I03938a845110002755636a9514b17a213bf1cc72 Signed-off-by: Jean-Christian de Rivaz Reviewed-on: http://openocd.zylin.com/4808 Reviewed-by: Tomas Vanek Tested-by: jenkins --- diff --git a/src/helper/command.c b/src/helper/command.c index f8b731e4a0..35c4486af8 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;