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/rtos | |
parent | ee019bf5f896912761d4b16516bf562f9ffe52da (diff) |
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/rtos')
-rw-r--r-- | src/rtos/linux.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rtos/linux.c b/src/rtos/linux.c index 2e97a421..b98cf453 100644 --- a/src/rtos/linux.c +++ b/src/rtos/linux.c @@ -160,7 +160,7 @@ int fill_buffer(struct target *target, uint32_t addr, uint8_t *buffer) { if ((addr & 0xfffffffc) != addr) - LOG_INFO("unaligned address %x!!", addr); + LOG_INFO("unaligned address %" PRIx32 "!!", addr); int retval = linux_read_memory(target, addr, 4, 1, buffer); return retval; @@ -217,7 +217,7 @@ static int linux_os_thread_reg_list(struct rtos *rtos, if (found == 0) { LOG_ERROR ( - "current thread %" PRIx64 ": no target to perform access of core id %x", + "current thread %" PRIx64 ": no target to perform access of core id %" PRIx32, thread_id, next->core_id); return ERROR_FAIL; @@ -1571,14 +1571,14 @@ static char *linux_ps_command(struct target *target) if (temp->context) tmp += sprintf(tmp, - "%d\t\t%d\t\t%x\t\t%s\n", - (int)temp->pid, temp->oncpu, + "%" PRId32 "\t\t%" PRId32 "\t\t%" PRIx32 "\t\t%s\n", + temp->pid, temp->oncpu, temp->asid, temp->name); else tmp += sprintf(tmp, - "%d\t\t%d\t\t%x\t\t%s\n", - (int)temp->pid, temp->oncpu, + "%" PRId32 "\t\t%" PRId32 "\t\t%" PRIx32 "\t\t%s\n", + temp->pid, temp->oncpu, temp->asid, temp->name); } |