]> git.sur5r.net Git - openocd/commitdiff
ARM11: fix warning on amd64
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 28 Nov 2009 19:55:00 +0000 (11:55 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 28 Nov 2009 19:55:00 +0000 (11:55 -0800)
Previous version of JTAG_DEBUG() macro hid this bug.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm11_dbgtap.c

index 9e438951b3de254aa41013d29cdbcad330e59bd2..ed57d20ccbb81ca9a64a6fd338f9097f57801765 100644 (file)
@@ -871,7 +871,10 @@ int arm11_sc7_run(struct arm11_common * arm11, struct arm11_sc7_action * actions
 
        for (size_t i = 0; i < count; i++)
        {
-               JTAG_DEBUG("SC7 %02d: %02x %s %08x", i, actions[i].address, actions[i].write ? "<=" : "=>", actions[i].value);
+               JTAG_DEBUG("SC7 %02d: %02x %s %08x",
+                       (unsigned) i, actions[i].address,
+                       actions[i].write ? "<=" : "=>",
+                       actions[i].value);
        }
 
        return ERROR_OK;