aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@remake.is>2014-12-19 14:20:40 +0000
committerPaul Fertser <fercerpav@gmail.com>2015-03-09 06:32:03 +0000
commit552c8c5971424fd7786e91f7e0987b412a8dce53 (patch)
tree5f03d44f87f1acf2574184c0b46a41db94df4a09
parent1d0cf0df37a4e831ca3121ba8987d5848cad3e42 (diff)
downloadriscv-openocd-552c8c5971424fd7786e91f7e0987b412a8dce53.zip
riscv-openocd-552c8c5971424fd7786e91f7e0987b412a8dce53.tar.gz
riscv-openocd-552c8c5971424fd7786e91f7e0987b412a8dce53.tar.bz2
contrib: itmdump: fix incorrect format printf
Change-Id: I29100e4b284e031613586a66daa74987d86ac9e1 Signed-off-by: Karl Palsson <karlp@tweak.net.au> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2449 Tested-by: jenkins Reviewed-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Reviewed-by: Stian Skjelstad <stian@nixia.no> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
-rw-r--r--contrib/itmdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/itmdump.c b/contrib/itmdump.c
index 9d313ff..fe83549 100644
--- a/contrib/itmdump.c
+++ b/contrib/itmdump.c
@@ -146,7 +146,7 @@ static void show_hard(FILE *f, int c)
unsigned size;
char *label;
- printf("DWT - ", type);
+ printf("DWT - ");
if (!read_varlen(f, c, &value))
return;
@@ -216,7 +216,7 @@ static void show_hard(FILE *f, int c)
}
break;
default:
- printf("UNDEFINED");
+ printf("UNDEFINED, rawtype: %x", type);
break;
}