X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fcommand.c;h=1ff4e01a7d1a5d51c4cf1cd26ed8d394bec43eb8;hp=48d998f663da1a3691e8e77e2655c21e164f575e;hb=d0eb66f729ff50ffa21a3ea22bcff46167fe627a;hpb=d9cb5593cd4855fba7ab76a7db2f2db6e7978f67 diff --git a/src/helper/command.c b/src/helper/command.c index 48d998f663..1ff4e01a7d 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -642,7 +642,10 @@ 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 '%s' failed with error code %d", c->name, retval); + char *full_name = command_name(c, ' '); + LOG_DEBUG("Command '%s' failed with error code %d", + full_name ? full_name : c->name, retval); + free(full_name); } return retval;