X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Ftarget.c;h=d672649281add2bf6a737b3fa553cda9ffb17833;hb=733dfb288fadefee93e61bb61a39171d210a93aa;hp=e2e9d6f6461373d10302634c6d7d8c782339030b;hpb=414245c9ce4ec112dc704664f56b268d27be3218;p=openocd.git diff --git a/src/target/target.c b/src/target/target.c index e2e9d6f646..d672649281 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -42,8 +42,6 @@ #include "image.h" #include "jtag.h" -#include - static int handle_targets_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); @@ -1945,9 +1943,9 @@ static void handle_md_output(struct command_context_s *cmd_ctx, const char *value_fmt; switch (size) { - case 4: value_fmt = "%8.8x"; break; - case 2: value_fmt = "%4.2x"; break; - case 1: value_fmt = "%2.2x"; break; + case 4: value_fmt = "%8.8x "; break; + case 2: value_fmt = "%4.2x "; break; + case 1: value_fmt = "%2.2x "; break; default: LOG_ERROR("invalid memory read size: %u", size); exit(-1); @@ -3450,7 +3448,7 @@ static int target_configure( Jim_GetOptInfo *goi, target_t *target ) if( e != JIM_OK ){ return e; } - tap = jtag_TapByJimObj( goi->interp, o ); + tap = jtag_tap_by_jim_obj( goi->interp, o ); if( tap == NULL ){ return JIM_ERR; }