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
log_output
Jean-Christian de Rivaz 2018-12-16 20:15:33 +01:00 committed by Tomas Vanek
parent a15c11d7d0
commit 44009186cf
1 changed files with 1 additions and 1 deletions

View File

@ -639,7 +639,7 @@ static int run_command(struct command_context *context,
/* we do not print out an error message because the command *should* /* we do not print out an error message because the command *should*
* have printed out an error * 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; return retval;