]> git.sur5r.net Git - openocd/commitdiff
stlink: stlink_interface_init_target use hex prefix
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 23 Aug 2012 14:23:54 +0000 (15:23 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Wed, 29 Aug 2012 06:24:14 +0000 (06:24 +0000)
Change-Id: I782da74687bcf111c1f04c53b2c1120d6a034441
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/791
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/jtag/stlink/stlink_interface.c

index 379e68d46fdc793660f7c0825079c0ebf3e2e3a5..c06d86cfa7a32d681339b35015a08563833ab5b5 100644 (file)
@@ -75,9 +75,8 @@ int stlink_interface_init_target(struct target *t)
        }
 
        if (found == 0) {
-               LOG_ERROR
-                   ("stlink_interface_init_target: target not found: idcode: %x ",
-                    t->tap->idcode);
+               LOG_ERROR("stlink_interface_init_target: target not found: idcode: 0x%08x",
+                               t->tap->idcode);
                return ERROR_FAIL;
        }