jtag/aice: avoid abusing of int32_t type
[fw/openocd] / src / jtag / aice / aice_interface.c
index 90871a1386d18028f48cfc1f0f9588ee88ccf4cb..a2bec327f32359aa3ec03ff0ffdebc417abce369 100644 (file)
@@ -252,8 +252,8 @@ int aice_scan_jtag_chain(void)
                return res;
        }
 
-       for (uint32_t i = 0; i < num_of_idcode; i++)
-               LOG_DEBUG("id_codes[%d] = 0x%x", i, aice_target_id_codes[i]);
+       for (unsigned int i = 0; i < num_of_idcode; i++)
+               LOG_DEBUG("id_codes[%u] = 0x%" PRIx32, i, aice_target_id_codes[i]);
 
        /* Update tap idcode */
        for (target = all_targets; target; target = target->next)