From: Edgar Grimberg Date: Thu, 21 Jan 2010 12:42:25 +0000 (+0100) Subject: target: Fixed format problem for mdh X-Git-Url: https://git.gag.com/?p=fw%2Fopenocd;a=commitdiff_plain;h=bc088b302bd0bb43cc9097a9f0b2e7369b0e04e2 target: Fixed format problem for mdh Fixed format problem for mdh. It needs to display 4 chars. Signed-off-by: Edgar Grimberg --- diff --git a/src/target/target.c b/src/target/target.c index c56265c1d..ff5aef34c 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -2170,7 +2170,7 @@ static void handle_md_output(struct command_context *cmd_ctx, const char *value_fmt; switch (size) { case 4: value_fmt = "%8.8x "; break; - case 2: value_fmt = "%4.2x "; break; + case 2: value_fmt = "%4.4x "; break; case 1: value_fmt = "%2.2x "; break; default: /* "can't happen", caller checked */