]> git.sur5r.net Git - openocd/commitdiff
contrib: itmdump: fix incorrect format printf
authorKarl Palsson <karlp@remake.is>
Fri, 19 Dec 2014 14:20:40 +0000 (14:20 +0000)
committerPaul Fertser <fercerpav@gmail.com>
Mon, 9 Mar 2015 06:32:03 +0000 (06:32 +0000)
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>
contrib/itmdump.c

index 9d313ffbfe297d1d3901da11d989bb680d957f82..fe835493437587eff7bb385d0b869c29d64e03c9 100644 (file)
@@ -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;
        }