summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdgar Grimberg <edgar.grimberg@zylin.com>2010-01-21 13:42:25 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-01-21 15:58:59 +0100
commitbc088b302bd0bb43cc9097a9f0b2e7369b0e04e2 (patch)
tree89236bde7b247048b87c70654d3d6c125f858b84 /src
parent1350b6aad074c1556604c5969dee43f294371461 (diff)
downloadopenocd+libswd-bc088b302bd0bb43cc9097a9f0b2e7369b0e04e2.tar.gz
openocd+libswd-bc088b302bd0bb43cc9097a9f0b2e7369b0e04e2.tar.bz2
openocd+libswd-bc088b302bd0bb43cc9097a9f0b2e7369b0e04e2.tar.xz
openocd+libswd-bc088b302bd0bb43cc9097a9f0b2e7369b0e04e2.zip
target: Fixed format problem for mdh
Fixed format problem for mdh. It needs to display 4 chars. Signed-off-by: Edgar Grimberg <edgar.grimberg@zylin.com>
Diffstat (limited to 'src')
-rw-r--r--src/target/target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index c56265c1..ff5aef34 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 */