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:
@@ -923,7 +923,7 @@ static int or1k_add_breakpoint(struct target *target,
|
||||
struct or1k_du *du_core = or1k_to_du(or1k);
|
||||
uint8_t data;
|
||||
|
||||
LOG_DEBUG("Adding breakpoint: addr 0x%08" TARGET_PRIxADDR ", len %d, type %d, set: %d, id: %" PRId32,
|
||||
LOG_DEBUG("Adding breakpoint: addr 0x%08" TARGET_PRIxADDR ", len %d, type %d, set: %d, id: %" PRIu32,
|
||||
breakpoint->address, breakpoint->length, breakpoint->type,
|
||||
breakpoint->set, breakpoint->unique_id);
|
||||
|
||||
@@ -982,7 +982,7 @@ static int or1k_remove_breakpoint(struct target *target,
|
||||
struct or1k_common *or1k = target_to_or1k(target);
|
||||
struct or1k_du *du_core = or1k_to_du(or1k);
|
||||
|
||||
LOG_DEBUG("Removing breakpoint: addr 0x%08" TARGET_PRIxADDR ", len %d, type %d, set: %d, id: %" PRId32,
|
||||
LOG_DEBUG("Removing breakpoint: addr 0x%08" TARGET_PRIxADDR ", len %d, type %d, set: %d, id: %" PRIu32,
|
||||
breakpoint->address, breakpoint->length, breakpoint->type,
|
||||
breakpoint->set, breakpoint->unique_id);
|
||||
|
||||
|
||||
@@ -869,7 +869,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%" PRId32 " at 0x%08" PRIx32, size * 8, addr);
|
||||
LOG_DEBUG("Reading WB%" PRIu32 " at 0x%08" PRIx32, size * 8, addr);
|
||||
|
||||
int retval;
|
||||
if (!jtag_info->or1k_jtag_inited) {
|
||||
@@ -924,7 +924,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%" PRId32 " at 0x%08" PRIx32, size * 8, addr);
|
||||
LOG_DEBUG("Writing WB%" PRIu32 " at 0x%08" PRIx32, size * 8, addr);
|
||||
|
||||
int retval;
|
||||
if (!jtag_info->or1k_jtag_inited) {
|
||||
|
||||
@@ -218,7 +218,7 @@ static int or1k_tap_vjtag_init(struct or1k_jtag *jtag_info)
|
||||
LOG_DEBUG("m_width = %d", m_width);
|
||||
LOG_DEBUG("manufacturer_id = 0x%02" PRIx32, MANUF(hub_info));
|
||||
LOG_DEBUG("nb_of_node = %d", nb_nodes);
|
||||
LOG_DEBUG("version = %" PRId32, VER(hub_info));
|
||||
LOG_DEBUG("version = %" PRIu32, VER(hub_info));
|
||||
LOG_DEBUG("VIR length = %d", guess_addr_width(nb_nodes) + m_width);
|
||||
|
||||
/* Because the number of SLD nodes is now known, the Nodes on the hub can be
|
||||
@@ -257,11 +257,11 @@ static int or1k_tap_vjtag_init(struct or1k_jtag *jtag_info)
|
||||
|
||||
LOG_DEBUG("Node info register");
|
||||
LOG_DEBUG("--------------------");
|
||||
LOG_DEBUG("instance_id = %" PRId32, ID(node_info));
|
||||
LOG_DEBUG("instance_id = %" PRIu32, ID(node_info));
|
||||
LOG_DEBUG("manufacturer_id = 0x%02" PRIx32, MANUF(node_info));
|
||||
LOG_DEBUG("node_id = %" PRId32 " (%s)", ID(node_info),
|
||||
LOG_DEBUG("node_id = %" PRIu32 " (%s)", ID(node_info),
|
||||
id_to_string(ID(node_info)));
|
||||
LOG_DEBUG("version = %" PRId32, VER(node_info));
|
||||
LOG_DEBUG("version = %" PRIu32, VER(node_info));
|
||||
|
||||
if (ID(node_info) == VJTAG_NODE_ID)
|
||||
vjtag_node_address = node_index + 1;
|
||||
|
||||
Reference in New Issue
Block a user