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>
This commit is contained in:
committed by
Spencer Oliver
parent
ee019bf5f8
commit
94d64ccaeb
@@ -98,7 +98,7 @@ int aice_init_targets(void)
|
||||
|
||||
if (found == 0) {
|
||||
LOG_ERROR
|
||||
("aice_init_targets: target not found: idcode: %x ",
|
||||
("aice_init_targets: target not found: idcode: %" PRIx32,
|
||||
target->tap->idcode);
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ static int aice_execute_reset(struct jtag_command *cmd)
|
||||
static int last_trst;
|
||||
int retval = ERROR_OK;
|
||||
|
||||
DEBUG_JTAG_IO("reset trst: %i", cmd->cmd.reset->trst);
|
||||
DEBUG_JTAG_IO("reset trst: %d", cmd->cmd.reset->trst);
|
||||
|
||||
if (cmd->cmd.reset->trst != last_trst) {
|
||||
if (cmd->cmd.reset->trst)
|
||||
|
||||
@@ -47,7 +47,7 @@ static int aice_pipe_write(const void *buffer, int count)
|
||||
|
||||
success = WriteFile(aice_pipe_output[1], buffer, count, &written, NULL);
|
||||
if (!success) {
|
||||
LOG_ERROR("(WIN32) write to pipe failed, error code: 0x%08lx", GetLastError());
|
||||
LOG_ERROR("(WIN32) write to pipe failed, error code: 0x%08l" PRIx32, GetLastError());
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ static int aice_pipe_read(void *buffer, int count)
|
||||
|
||||
success = ReadFile(aice_pipe_input[0], buffer, count, &has_read, NULL);
|
||||
if (!success || (has_read == 0)) {
|
||||
LOG_ERROR("(WIN32) read from pipe failed, error code: 0x%08lx", GetLastError());
|
||||
LOG_ERROR("(WIN32) read from pipe failed, error code: 0x%08l" PRIx32, GetLastError());
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -35,66 +35,6 @@
|
||||
#define AICE_IN_PACK_COMMAND_SIZE 2048
|
||||
#define AICE_OUT_PACK_COMMAND_SIZE 2048
|
||||
|
||||
/* Constants for AICE command */
|
||||
#define AICE_CMD_SCAN_CHAIN 0x00
|
||||
#define AICE_CMD_SELECT_TARGET 0x01
|
||||
#define AICE_CMD_READ_DIM 0x02
|
||||
#define AICE_CMD_READ_EDMSR 0x03
|
||||
#define AICE_CMD_READ_DTR 0x04
|
||||
#define AICE_CMD_READ_MEM 0x05
|
||||
#define AICE_CMD_READ_MISC 0x06
|
||||
#define AICE_CMD_FASTREAD_MEM 0x07
|
||||
#define AICE_CMD_WRITE_DIM 0x08
|
||||
#define AICE_CMD_WRITE_EDMSR 0x09
|
||||
#define AICE_CMD_WRITE_DTR 0x0A
|
||||
#define AICE_CMD_WRITE_MEM 0x0B
|
||||
#define AICE_CMD_WRITE_MISC 0x0C
|
||||
#define AICE_CMD_FASTWRITE_MEM 0x0D
|
||||
#define AICE_CMD_EXECUTE 0x0E
|
||||
#define AICE_CMD_READ_MEM_B 0x14
|
||||
#define AICE_CMD_READ_MEM_H 0x15
|
||||
#define AICE_CMD_T_READ_MISC 0x20
|
||||
#define AICE_CMD_T_READ_EDMSR 0x21
|
||||
#define AICE_CMD_T_READ_DTR 0x22
|
||||
#define AICE_CMD_T_READ_DIM 0x23
|
||||
#define AICE_CMD_T_READ_MEM_B 0x24
|
||||
#define AICE_CMD_T_READ_MEM_H 0x25
|
||||
#define AICE_CMD_T_READ_MEM 0x26
|
||||
#define AICE_CMD_T_FASTREAD_MEM 0x27
|
||||
#define AICE_CMD_T_WRITE_MISC 0x28
|
||||
#define AICE_CMD_T_WRITE_EDMSR 0x29
|
||||
#define AICE_CMD_T_WRITE_DTR 0x2A
|
||||
#define AICE_CMD_T_WRITE_DIM 0x2B
|
||||
#define AICE_CMD_T_WRITE_MEM_B 0x2C
|
||||
#define AICE_CMD_T_WRITE_MEM_H 0x2D
|
||||
#define AICE_CMD_T_WRITE_MEM 0x2E
|
||||
#define AICE_CMD_T_FASTWRITE_MEM 0x2F
|
||||
#define AICE_CMD_T_GET_TRACE_STATUS 0x36
|
||||
#define AICE_CMD_T_EXECUTE 0x3E
|
||||
#define AICE_CMD_AICE_PROGRAM_READ 0x40
|
||||
#define AICE_CMD_AICE_PROGRAM_WRITE 0x41
|
||||
#define AICE_CMD_AICE_PROGRAM_CONTROL 0x42
|
||||
#define AICE_CMD_READ_CTRL 0x50
|
||||
#define AICE_CMD_WRITE_CTRL 0x51
|
||||
#define AICE_CMD_BATCH_BUFFER_READ 0x60
|
||||
#define AICE_CMD_READ_DTR_TO_BUFFER 0x61
|
||||
#define AICE_CMD_BATCH_BUFFER_WRITE 0x68
|
||||
#define AICE_CMD_WRITE_DTR_FROM_BUFFER 0x69
|
||||
|
||||
/* Constants for AICE command format length */
|
||||
#define AICE_FORMAT_HTDA 3
|
||||
#define AICE_FORMAT_HTDB 6
|
||||
#define AICE_FORMAT_HTDC 7
|
||||
#define AICE_FORMAT_HTDD 10
|
||||
#define AICE_FORMAT_HTDMA 4
|
||||
#define AICE_FORMAT_HTDMB 8
|
||||
#define AICE_FORMAT_HTDMC 8
|
||||
#define AICE_FORMAT_HTDMD 12
|
||||
#define AICE_FORMAT_DTHA 6
|
||||
#define AICE_FORMAT_DTHB 2
|
||||
#define AICE_FORMAT_DTHMA 8
|
||||
#define AICE_FORMAT_DTHMB 4
|
||||
|
||||
/* Constants for AICE command READ_CTRL */
|
||||
#define AICE_READ_CTRL_GET_ICE_STATE 0x00
|
||||
#define AICE_READ_CTRL_GET_HARDWARE_VERSION 0x01
|
||||
|
||||
Reference in New Issue
Block a user