diff options
author | Hsiangkai Wang <hsiangkai@gmail.com> | 2013-11-04 12:43:12 +0800 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-01-15 12:40:42 +0000 |
commit | 94d64ccaebd3df17f5873c076fc08ca97088cb1e (patch) | |
tree | bf59fb3d3370c8bbd630ccc76b94d24eb952d546 /src/target/openrisc/or1k_du_adv.c | |
parent | ee019bf5f896912761d4b16516bf562f9ffe52da (diff) | |
download | riscv-openocd-94d64ccaebd3df17f5873c076fc08ca97088cb1e.zip riscv-openocd-94d64ccaebd3df17f5873c076fc08ca97088cb1e.tar.gz riscv-openocd-94d64ccaebd3df17f5873c076fc08ca97088cb1e.tar.bz2 |
Conform to C99 integer types format specifiers
Review and modify to conform to C99 integer types format specifiers.
Use arm-none-eabi toolchain to build successfully.
Change-Id: If855072a8f88886809309155ac6d031dcfcbc4b2
Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com>
Signed-off-by: Hsiangkai <hsiangkai@gmail.com>
Reviewed-on: http://openocd.zylin.com/1794
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/openrisc/or1k_du_adv.c')
-rw-r--r-- | src/target/openrisc/or1k_du_adv.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/target/openrisc/or1k_du_adv.c b/src/target/openrisc/or1k_du_adv.c index d0cc7f8..c3aceff 100644 --- a/src/target/openrisc/or1k_du_adv.c +++ b/src/target/openrisc/or1k_du_adv.c @@ -283,7 +283,7 @@ static int adbg_ctrl_write(struct or1k_jtag *jtag_info, uint8_t regidx, uint32_t opcode; uint32_t opcode_len; - LOG_DEBUG("Write control register %d: 0x%08x", regidx, cmd_data[0]); + LOG_DEBUG("Write control register %" PRId8 ": 0x%08" PRIx32, regidx, cmd_data[0]); int retval = adbg_select_ctrl_reg(jtag_info, regidx); if (retval != ERROR_OK) { @@ -419,7 +419,7 @@ static int adbg_wb_burst_read(struct or1k_jtag *jtag_info, int size, int retval; uint8_t opcode; - LOG_DEBUG("Doing burst read, word size %d, word count %d, start address 0x%08x", + LOG_DEBUG("Doing burst read, word size %d, word count %d, start address 0x%08" PRIx32, size, count, start_address); /* Select the appropriate opcode */ @@ -508,7 +508,7 @@ retry_read_full: crc_calc = adbg_compute_crc(crc_calc, data[i], 8); if (crc_calc != crc_read) { - LOG_WARNING("CRC ERROR! Computed 0x%08x, read CRC 0x%08x", crc_calc, crc_read); + LOG_WARNING("CRC ERROR! Computed 0x%08" PRIx32 ", read CRC 0x%08" PRIx32, crc_calc, crc_read); if (retry_full_crc++ < MAX_READ_CRC_RETRY) goto retry_read_full; else { @@ -540,7 +540,7 @@ retry_read_full: goto out; addr = (err_data[0] >> 1) | (err_data[1] << 31); - LOG_WARNING("WB bus error during burst read, address 0x%08x, retrying!", addr); + LOG_WARNING("WB bus error during burst read, address 0x%08" PRIx32 ", retrying!", addr); bus_error_retries++; if (bus_error_retries > MAX_BUS_ERRORS) { @@ -656,7 +656,7 @@ retry_full_write: return retval; if (!value) { - LOG_WARNING("CRC ERROR! match bit after write is %i (computed CRC 0x%08x)", value, crc_calc); + LOG_WARNING("CRC ERROR! match bit after write is %" PRIi8 " (computed CRC 0x%08" PRIx32 ")", value, crc_calc); if (retry_full_crc++ < MAX_WRITE_CRC_RETRY) goto retry_full_write; else @@ -684,7 +684,7 @@ retry_full_write: return retval; addr = (err_data[0] >> 1) | (err_data[1] << 31); - LOG_WARNING("WB bus error during burst write, address 0x%08x, retrying!", addr); + LOG_WARNING("WB bus error during burst write, address 0x%08" PRIx32 ", retrying!", addr); bus_error_retries++; if (bus_error_retries > MAX_BUS_ERRORS) { @@ -831,7 +831,7 @@ static int or1k_adv_cpu_reset(struct or1k_jtag *jtag_info, int action) static int or1k_adv_jtag_read_memory(struct or1k_jtag *jtag_info, uint32_t addr, uint32_t size, int count, uint8_t *buffer) { - LOG_DEBUG("Reading WB%d at 0x%08x", size * 8, addr); + LOG_DEBUG("Reading WB%" PRId32 " at 0x%08" PRIx32, size * 8, addr); int retval; if (!jtag_info->or1k_jtag_inited) { @@ -869,7 +869,7 @@ static int or1k_adv_jtag_read_memory(struct or1k_jtag *jtag_info, static int or1k_adv_jtag_write_memory(struct or1k_jtag *jtag_info, uint32_t addr, uint32_t size, int count, const uint8_t *buffer) { - LOG_DEBUG("Writing WB%d at 0x%08x", size * 8, addr); + LOG_DEBUG("Writing WB%" PRId32 " at 0x%08" PRIx32, size * 8, addr); int retval; if (!jtag_info->or1k_jtag_inited) { |