openocd: fix conversion string for stdint values
Detected while converting 'unsigned' to 'unsigned int'. Use the correct conversion string for stdint values. Change-Id: I99f3dff4c64dfd7acf2bddb130b56e9ebe1e6c60 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8477 Tested-by: jenkins
This commit is contained in:
@@ -242,7 +242,7 @@ int arm11_add_debug_scan_n(struct arm11_common *arm11,
|
||||
static void arm11_add_debug_inst(struct arm11_common *arm11,
|
||||
uint32_t inst, uint8_t *flag, tap_state_t state)
|
||||
{
|
||||
JTAG_DEBUG("INST <= 0x%08x", (unsigned) inst);
|
||||
JTAG_DEBUG("INST <= 0x%08" PRIx32, inst);
|
||||
|
||||
struct scan_field itr[2];
|
||||
|
||||
@@ -282,9 +282,7 @@ int arm11_read_dscr(struct arm11_common *arm11)
|
||||
CHECK_RETVAL(jtag_execute_queue());
|
||||
|
||||
if (arm11->dscr != dscr)
|
||||
JTAG_DEBUG("DSCR = %08x (OLD %08x)",
|
||||
(unsigned) dscr,
|
||||
(unsigned) arm11->dscr);
|
||||
JTAG_DEBUG("DSCR = %08" PRIx32 " (OLD %08" PRIx32 ")", dscr, arm11->dscr);
|
||||
|
||||
arm11->dscr = dscr;
|
||||
|
||||
@@ -317,9 +315,7 @@ int arm11_write_dscr(struct arm11_common *arm11, uint32_t dscr)
|
||||
|
||||
CHECK_RETVAL(jtag_execute_queue());
|
||||
|
||||
JTAG_DEBUG("DSCR <= %08x (OLD %08x)",
|
||||
(unsigned) dscr,
|
||||
(unsigned) arm11->dscr);
|
||||
JTAG_DEBUG("DSCR <= %08" PRIx32 " (OLD %08" PRIx32 ")", dscr, arm11->dscr);
|
||||
|
||||
arm11->dscr = dscr;
|
||||
|
||||
@@ -509,8 +505,8 @@ int arm11_run_instr_data_to_core(struct arm11_common *arm11,
|
||||
|
||||
CHECK_RETVAL(jtag_execute_queue());
|
||||
|
||||
JTAG_DEBUG("DTR _data %08x ready %d n_retry %d",
|
||||
(unsigned) _data, ready, n_retry);
|
||||
JTAG_DEBUG("DTR _data %08" PRIx32 " ready %d n_retry %d",
|
||||
_data, ready, n_retry);
|
||||
|
||||
int64_t then = 0;
|
||||
|
||||
@@ -754,8 +750,8 @@ int arm11_run_instr_data_from_core(struct arm11_common *arm11,
|
||||
|
||||
CHECK_RETVAL(jtag_execute_queue());
|
||||
|
||||
JTAG_DEBUG("DTR _data %08x ready %d n_retry %d",
|
||||
(unsigned) _data, ready, n_retry);
|
||||
JTAG_DEBUG("DTR _data %08" PRIx32 " ready %d n_retry %d",
|
||||
_data, ready, n_retry);
|
||||
|
||||
int64_t then = 0;
|
||||
|
||||
@@ -878,9 +874,8 @@ int arm11_sc7_run(struct arm11_common *arm11, struct arm11_sc7_action *actions,
|
||||
/* Timeout here so we don't get stuck. */
|
||||
int i_n = 0;
|
||||
while (1) {
|
||||
JTAG_DEBUG("SC7 <= c%-3d Data %08x %s",
|
||||
(unsigned) address_out,
|
||||
(unsigned) data_out,
|
||||
JTAG_DEBUG("SC7 <= c%-3" PRIu8 " Data %08" PRIx32 " %s",
|
||||
address_out, data_out,
|
||||
n_rw ? "write" : "read");
|
||||
|
||||
arm11_add_dr_scan_vc(arm11->arm.target->tap, ARRAY_SIZE(chain7_fields),
|
||||
@@ -908,7 +903,7 @@ int arm11_sc7_run(struct arm11_common *arm11, struct arm11_sc7_action *actions,
|
||||
}
|
||||
|
||||
if (!n_rw)
|
||||
JTAG_DEBUG("SC7 => Data %08x", (unsigned) data_in);
|
||||
JTAG_DEBUG("SC7 => Data %08" PRIx32, data_in);
|
||||
|
||||
if (i > 0) {
|
||||
if (actions[i - 1].address != address_in)
|
||||
|
||||
Reference in New Issue
Block a user