X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fetm_dummy.c;h=4b84fd32061b64279e424f2e848c703e20fe00ca;hp=ee83f172d934e3a75578161cd38a239f05ad032f;hb=a9abfa7d06dbcfded97b7fb41f50d3581c24fbae;hpb=8c1ec4f0e1a7dd37a2549d83b6cd5c8c57eb34aa diff --git a/src/target/etm_dummy.c b/src/target/etm_dummy.c index ee83f172d9..4b84fd3206 100644 --- a/src/target/etm_dummy.c +++ b/src/target/etm_dummy.c @@ -21,20 +21,9 @@ #include "config.h" #endif -#include - #include "etm_dummy.h" -#include "etm.h" - #include "arm7_9_common.h" -#include "log.h" -#include "types.h" -#include "binarybuffer.h" -#include "target.h" -#include "register.h" -#include "jtag.h" -#include static int handle_etm_dummy_config_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { @@ -42,11 +31,11 @@ static int handle_etm_dummy_config_command(struct command_context_s *cmd_ctx, ch armv4_5_common_t *armv4_5; arm7_9_common_t *arm7_9; - target = get_target_by_num(strtoul(args[0], NULL, 0)); + target = get_target(args[0]); if (!target) { - LOG_ERROR("target number '%s' not defined", args[0]); + LOG_ERROR("target '%s' not defined", args[0]); return ERROR_FAIL; }