X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farm_adi_v5.c;h=90423f4b2dd960ed64f1daec351f33c016cb8850;hb=0bcf5a6b76ad1cb4d871733f438e2a261bb88e12;hp=f1a50215dc0b071201f4930c142a26e75801ca54;hpb=1af6b72fc1e27c5e493570ea6e8c95c0519be4f8;p=openocd.git diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index f1a50215dc..90423f4b2d 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -1144,7 +1144,7 @@ int dap_baseaddr_command(struct command_context_s *cmd_ctx, dap_ap_read_reg_u32(swjdp, 0xF8, &baseaddr); retval = swjdp_transaction_endcheck(swjdp); - command_print(cmd_ctx, "0x%8.8x", baseaddr); + command_print(cmd_ctx, "0x%8.8" PRIx32, baseaddr); if (apselsave != apsel) dap_ap_select(swjdp, apselsave); @@ -1162,7 +1162,7 @@ int dap_memaccess_command(struct command_context_s *cmd_ctx, memaccess_tck = strtoul(args[0], NULL, 0); swjdp->memaccess_tck = memaccess_tck; - command_print(cmd_ctx, "memory bus access delay set to %i tck", + command_print(cmd_ctx, "memory bus access delay set to %" PRIi32 " tck", swjdp->memaccess_tck); return ERROR_OK; @@ -1181,7 +1181,7 @@ int dap_apsel_command(struct command_context_s *cmd_ctx, dap_ap_select(swjdp, apsel); dap_ap_read_reg_u32(swjdp, 0xFC, &apid); retval = swjdp_transaction_endcheck(swjdp); - command_print(cmd_ctx, "ap %i selected, identification register 0x%8.8x", + command_print(cmd_ctx, "ap %" PRIi32 " selected, identification register 0x%8.8" PRIx32, apsel, apid); return retval; @@ -1203,7 +1203,7 @@ int dap_apid_command(struct command_context_s *cmd_ctx, dap_ap_read_reg_u32(swjdp, 0xFC, &apid); retval = swjdp_transaction_endcheck(swjdp); - command_print(cmd_ctx, "0x%8.8x", apid); + command_print(cmd_ctx, "0x%8.8" PRIx32, apid); if (apselsave != apsel) dap_ap_select(swjdp, apselsave);