Fix regression in mdw output; identified by Magnus Lundin.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2098 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
a8d621325b
commit
733dfb288f
|
@ -1943,9 +1943,9 @@ static void handle_md_output(struct command_context_s *cmd_ctx,
|
||||||
|
|
||||||
const char *value_fmt;
|
const char *value_fmt;
|
||||||
switch (size) {
|
switch (size) {
|
||||||
case 4: value_fmt = "%8.8x"; break;
|
case 4: value_fmt = "%8.8x "; break;
|
||||||
case 2: value_fmt = "%4.2x"; break;
|
case 2: value_fmt = "%4.2x "; break;
|
||||||
case 1: value_fmt = "%2.2x"; break;
|
case 1: value_fmt = "%2.2x "; break;
|
||||||
default:
|
default:
|
||||||
LOG_ERROR("invalid memory read size: %u", size);
|
LOG_ERROR("invalid memory read size: %u", size);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
|
Loading…
Reference in New Issue