X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Frtos%2Flinux.c;h=b98cf453157a08ff1895b09ce17590b6a0f2aad2;hb=94d64ccaebd3df17f5873c076fc08ca97088cb1e;hp=2e97a421a93f4f3f10e11c8b4969c86a41497c38;hpb=ee019bf5f896912761d4b16516bf562f9ffe52da;p=openocd.git diff --git a/src/rtos/linux.c b/src/rtos/linux.c index 2e97a421a9..b98cf45315 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); }