target: Fixed format problem for mdh
authorEdgar Grimberg <edgar.grimberg@zylin.com>
Thu, 21 Jan 2010 12:42:25 +0000 (13:42 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 21 Jan 2010 14:58:59 +0000 (15:58 +0100)
Fixed format problem for mdh. It needs to display 4 chars.

Signed-off-by: Edgar Grimberg <edgar.grimberg@zylin.com>
src/target/target.c

index c56265c1d1e8c200adcc43366c46dd1e5b32b4b6..ff5aef34c9bd0dd6fd31427284eb5abdb4a9161c 100644 (file)
@@ -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 */