command: Log the failed command name 08/4808/3
authorJean-Christian de Rivaz <jcamdr70@gmail.com>
Sun, 16 Dec 2018 19:15:33 +0000 (20:15 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 25 Dec 2018 19:01:48 +0000 (19:01 +0000)
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
src/helper/command.c

index f8b731e..35c4486 100644 (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*
                 * 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;