From 44009186cfabe77fb260af221ebd6272d1e78f44 Mon Sep 17 00:00:00 2001 From: Jean-Christian de Rivaz Date: Sun, 16 Dec 2018 20:15:33 +0100 Subject: [PATCH] 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 --- src/helper/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2