compile with cygwin (32-bit)
Changed some printf format strings.. [dbrownell@users.sourceforge.net: shrink lines, fix indents] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
parent
ecab0cfe25
commit
ab3bdfb2cb
|
@ -1713,13 +1713,13 @@ static int ft2232_execute_sleep(struct jtag_command *cmd)
|
||||||
int retval;
|
int retval;
|
||||||
retval = ERROR_OK;
|
retval = ERROR_OK;
|
||||||
|
|
||||||
DEBUG_JTAG_IO("sleep %i", cmd->cmd.sleep->us);
|
DEBUG_JTAG_IO("sleep %" PRIi32, cmd->cmd.sleep->us);
|
||||||
|
|
||||||
if (ft2232_send_and_recv(first_unsent, cmd) != ERROR_OK)
|
if (ft2232_send_and_recv(first_unsent, cmd) != ERROR_OK)
|
||||||
retval = ERROR_JTAG_QUEUE_FAILED;
|
retval = ERROR_JTAG_QUEUE_FAILED;
|
||||||
first_unsent = cmd->next;
|
first_unsent = cmd->next;
|
||||||
jtag_sleep(cmd->cmd.sleep->us);
|
jtag_sleep(cmd->cmd.sleep->us);
|
||||||
DEBUG_JTAG_IO("sleep %i usec while in %s",
|
DEBUG_JTAG_IO("sleep %" PRIi32 " usec while in %s",
|
||||||
cmd->cmd.sleep->us,
|
cmd->cmd.sleep->us,
|
||||||
tap_state_name(tap_get_state()));
|
tap_state_name(tap_get_state()));
|
||||||
return retval;
|
return retval;
|
||||||
|
|
|
@ -189,7 +189,9 @@ COMMAND_HANDLER(arm966e_handle_cp15_command)
|
||||||
uint32_t value;
|
uint32_t value;
|
||||||
if ((retval = arm966e_read_cp15(target, address, &value)) != ERROR_OK)
|
if ((retval = arm966e_read_cp15(target, address, &value)) != ERROR_OK)
|
||||||
{
|
{
|
||||||
command_print(cmd_ctx, "couldn't access reg %i", address);
|
command_print(cmd_ctx,
|
||||||
|
"couldn't access reg %" PRIi32,
|
||||||
|
address);
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
if ((retval = jtag_execute_queue()) != ERROR_OK)
|
if ((retval = jtag_execute_queue()) != ERROR_OK)
|
||||||
|
@ -197,7 +199,8 @@ COMMAND_HANDLER(arm966e_handle_cp15_command)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
command_print(cmd_ctx, "%i: %8.8" PRIx32 "", address, value);
|
command_print(cmd_ctx, "%" PRIi32 ": %8.8" PRIx32,
|
||||||
|
address, value);
|
||||||
}
|
}
|
||||||
else if (argc == 2)
|
else if (argc == 2)
|
||||||
{
|
{
|
||||||
|
@ -205,10 +208,13 @@ COMMAND_HANDLER(arm966e_handle_cp15_command)
|
||||||
COMMAND_PARSE_NUMBER(u32, args[1], value);
|
COMMAND_PARSE_NUMBER(u32, args[1], value);
|
||||||
if ((retval = arm966e_write_cp15(target, address, value)) != ERROR_OK)
|
if ((retval = arm966e_write_cp15(target, address, value)) != ERROR_OK)
|
||||||
{
|
{
|
||||||
command_print(cmd_ctx, "couldn't access reg %i", address);
|
command_print(cmd_ctx,
|
||||||
|
"couldn't access reg %" PRIi32,
|
||||||
|
address);
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
command_print(cmd_ctx, "%i: %8.8" PRIx32 "", address, value);
|
command_print(cmd_ctx, "%" PRIi32 ": %8.8" PRIx32,
|
||||||
|
address, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -235,11 +235,12 @@ bye:
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_DEBUG("added %s watchpoint at 0x%8.8" PRIx32 " of length 0x%8.8x (WPID: %d)",
|
LOG_DEBUG("added %s watchpoint at 0x%8.8" PRIx32
|
||||||
watchpoint_rw_strings[(*watchpoint_p)->rw],
|
" of length 0x%8.8" PRIx32 " (WPID: %d)",
|
||||||
(*watchpoint_p)->address,
|
watchpoint_rw_strings[(*watchpoint_p)->rw],
|
||||||
(*watchpoint_p)->length,
|
(*watchpoint_p)->address,
|
||||||
(*watchpoint_p)->unique_id );
|
(*watchpoint_p)->length,
|
||||||
|
(*watchpoint_p)->unique_id );
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2801,13 +2801,15 @@ COMMAND_HANDLER(handle_wp_command)
|
||||||
|
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
{
|
{
|
||||||
command_print(cmd_ctx,
|
command_print(cmd_ctx, "address: 0x%8.8" PRIx32
|
||||||
"address: 0x%8.8" PRIx32 ", len: 0x%8.8x, r/w/a: %i, value: 0x%8.8" PRIx32 ", mask: 0x%8.8" PRIx32 "",
|
", len: 0x%8.8" PRIx32
|
||||||
watchpoint->address,
|
", r/w/a: %i, value: 0x%8.8" PRIx32
|
||||||
watchpoint->length,
|
", mask: 0x%8.8" PRIx32,
|
||||||
(int)(watchpoint->rw),
|
watchpoint->address,
|
||||||
watchpoint->value,
|
watchpoint->length,
|
||||||
watchpoint->mask);
|
(int)watchpoint->rw,
|
||||||
|
watchpoint->value,
|
||||||
|
watchpoint->mask);
|
||||||
watchpoint = watchpoint->next;
|
watchpoint = watchpoint->next;
|
||||||
}
|
}
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
|
|
Loading…
Reference in New Issue