target: use proper format with uint32_t
Modify the format strings to properly handle uint32_t data types. While there, fix prototype mismatch between header and C file of the function armv7a_l1_d_cache_inval_virt(). Change-Id: I434bd241fa5c38e0c15d22cda2295097050067f5 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5818 Tested-by: jenkins
This commit is contained in:
@@ -253,11 +253,11 @@ static int dpmv8_exec_opcode(struct arm_dpm *dpm,
|
||||
/* update dscr and el after each command execution */
|
||||
dpm->dscr = dscr;
|
||||
if (dpm->last_el != ((dscr >> 8) & 3))
|
||||
LOG_DEBUG("EL %i -> %i", dpm->last_el, (dscr >> 8) & 3);
|
||||
LOG_DEBUG("EL %i -> %" PRIu32, dpm->last_el, (dscr >> 8) & 3);
|
||||
dpm->last_el = (dscr >> 8) & 3;
|
||||
|
||||
if (dscr & DSCR_ERR) {
|
||||
LOG_ERROR("Opcode 0x%08"PRIx32", DSCR.ERR=1, DSCR.EL=%i", opcode, dpm->last_el);
|
||||
LOG_ERROR("Opcode 0x%08" PRIx32 ", DSCR.ERR=1, DSCR.EL=%i", opcode, dpm->last_el);
|
||||
armv8_dpm_handle_exception(dpm, true);
|
||||
retval = ERROR_FAIL;
|
||||
}
|
||||
@@ -560,7 +560,7 @@ int armv8_dpm_modeswitch(struct arm_dpm *dpm, enum arm_mode mode)
|
||||
LOG_DEBUG("restoring mode, cpsr = 0x%08"PRIx32, cpsr);
|
||||
|
||||
} else {
|
||||
LOG_DEBUG("setting mode 0x%"PRIx32, mode);
|
||||
LOG_DEBUG("setting mode 0x%x", mode);
|
||||
cpsr = mode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user