Clean up many C99 integer types format specifiers
This eliminates most of the warnings reported when building for arm-none-eabi (newlib). Hsiangkai, there're many similar warnings left in your nds32 files, I didn't have the nerve to clean them all, probably you could pick it up. Change-Id: Id3bbe2ed2e3f1396290e55bea4c45068165a4810 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1674 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
75b4cbe356
commit
f132fcf636
@@ -662,7 +662,7 @@ int dap_syssec_kinetis_mdmap(struct adiv5_dap *dap)
|
||||
dap_run(dap);
|
||||
|
||||
if (val != 0x001C0000) {
|
||||
LOG_DEBUG("id doesn't match %08X != 0x001C0000", val);
|
||||
LOG_DEBUG("id doesn't match %08" PRIX32 " != 0x001C0000", val);
|
||||
dap_ap_select(dap, 0);
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
@@ -676,7 +676,7 @@ int dap_syssec_kinetis_mdmap(struct adiv5_dap *dap)
|
||||
return retval;
|
||||
dap_run(dap);
|
||||
|
||||
LOG_DEBUG("MDM_REG_STAT %08X", val);
|
||||
LOG_DEBUG("MDM_REG_STAT %08" PRIX32, val);
|
||||
|
||||
if ((val & (MDM_STAT_SYSSEC|MDM_STAT_FREADY)) != (MDM_STAT_FREADY)) {
|
||||
LOG_DEBUG("MDMAP: system is secured, masserase needed");
|
||||
@@ -704,7 +704,7 @@ int dap_syssec_kinetis_mdmap(struct adiv5_dap *dap)
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
dap_run(dap);
|
||||
LOG_DEBUG("MDM_REG_STAT %08X", val);
|
||||
LOG_DEBUG("MDM_REG_STAT %08" PRIX32, val);
|
||||
|
||||
if ((val & 1))
|
||||
break;
|
||||
@@ -720,13 +720,13 @@ int dap_syssec_kinetis_mdmap(struct adiv5_dap *dap)
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
dap_run(dap);
|
||||
LOG_DEBUG("MDM_REG_STAT %08X", val);
|
||||
LOG_DEBUG("MDM_REG_STAT %08" PRIX32, val);
|
||||
/* read control register and wait for ready */
|
||||
retval = dap_queue_ap_read(dap, MDM_REG_CTRL, &val);
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
dap_run(dap);
|
||||
LOG_DEBUG("MDM_REG_CTRL %08X", val);
|
||||
LOG_DEBUG("MDM_REG_CTRL %08" PRIX32, val);
|
||||
|
||||
if (val == 0x00)
|
||||
break;
|
||||
@@ -765,7 +765,7 @@ int dap_syssec(struct adiv5_dap *dap)
|
||||
|
||||
while (tap != NULL) {
|
||||
if (tap->hasidcode && (dap_syssec_filter_data[i].idcode == tap->idcode)) {
|
||||
LOG_DEBUG("DAP: mdmap_init for idcode: %08x", tap->idcode);
|
||||
LOG_DEBUG("DAP: mdmap_init for idcode: %08" PRIx32, tap->idcode);
|
||||
dap_syssec_filter_data[i].dap_init(dap);
|
||||
}
|
||||
tap = tap->next_tap;
|
||||
@@ -963,7 +963,7 @@ int dap_find_ap(struct adiv5_dap *dap, enum ap_type type_to_find, uint8_t *ap_nu
|
||||
((id_val & 0x0FFF0000) == 0x04770000) && /* Jedec codes match */
|
||||
((id_val & 0xFF) == type_to_find)) { /* type matches*/
|
||||
|
||||
LOG_DEBUG("Found %s at AP index: %d (IDR=0x%08X)",
|
||||
LOG_DEBUG("Found %s at AP index: %d (IDR=0x%08" PRIX32 ")",
|
||||
(type_to_find == AP_TYPE_AHB_AP) ? "AHB-AP" :
|
||||
(type_to_find == AP_TYPE_APB_AP) ? "APB-AP" :
|
||||
(type_to_find == AP_TYPE_JTAG_AP) ? "JTAG-AP" : "Unknown",
|
||||
|
||||
Reference in New Issue
Block a user