diff --git a/core/clist.c b/core/clist.c index 72b1e3dd14c507bbbf37a2dcd6bad567720940bd..f5da2f73752e0ef5ed3d06483f34aca9d20b7269 100644 --- a/core/clist.c +++ b/core/clist.c @@ -67,7 +67,8 @@ void clist_print(clist_node_t *clist) } do { - printf("list entry: %p: prev=%p next=%p\n", clist, clist->prev, clist->next); + printf("list entry: %p: prev=%p next=%p\n", + (void *)clist, (void *)clist->prev, (void *)clist->next); clist = clist->next; if (clist == start) { diff --git a/cpu/cc2538/periph/i2c.c b/cpu/cc2538/periph/i2c.c index 64557f9d2c8042519f3bb1a3b54657ff52ff8b01..b56a1c4bc18ba9735def451121f5c8686298e9b1 100644 --- a/cpu/cc2538/periph/i2c.c +++ b/cpu/cc2538/periph/i2c.c @@ -536,7 +536,8 @@ int i2c_write_bytes(i2c_t dev, uint8_t address, char *data, int length) } if (n < length) { - DEBUG("%s(%u, %p, %u): %u/%u bytes delivered.\n", __FUNCTION__, address, data, length, n, length); + DEBUG("%s(%u, %p, %u): %u/%u bytes delivered.\n", + __FUNCTION__, address, (void *)data, length, n, length); } return n; @@ -617,7 +618,7 @@ int i2c_write_regs(i2c_t dev, uint8_t address, uint8_t reg, char *data, int leng dev, address, reg, - data, + (void *)data, length, n, length diff --git a/cpu/native/irq_cpu.c b/cpu/native/irq_cpu.c index e48978cfdcd13ca4e8bda3d2c455834ab1ac207e..da23db696802f069bc2e03110922b330574af429 100644 --- a/cpu/native/irq_cpu.c +++ b/cpu/native/irq_cpu.c @@ -452,7 +452,8 @@ void native_interrupt_init(void) DEBUG("native_interrupt_init\n"); VALGRIND_STACK_REGISTER(__isr_stack, __isr_stack + sizeof(__isr_stack)); - VALGRIND_DEBUG("VALGRIND_STACK_REGISTER(%p, %p)\n", __isr_stack, (void*)((int)__isr_stack + sizeof(__isr_stack))); + VALGRIND_DEBUG("VALGRIND_STACK_REGISTER(%p, %p)\n", + (void *)__isr_stack, (void*)((int)__isr_stack + sizeof(__isr_stack))); native_interrupts_enabled = 1; _native_sigpend = 0; diff --git a/cpu/native/native_cpu.c b/cpu/native/native_cpu.c index 6f69627c0377be007acfbd5f5790e4bd7fc7038d..90d4f85e8fc59a51d1e7deb3f616d2263405875e 100644 --- a/cpu/native/native_cpu.c +++ b/cpu/native/native_cpu.c @@ -80,7 +80,8 @@ char *thread_stack_init(thread_task_func_t task_func, void *arg, void *stack_sta ucontext_t *p; VALGRIND_STACK_REGISTER(stack_start, (char *) stack_start + stacksize); - VALGRIND_DEBUG("VALGRIND_STACK_REGISTER(%p, %p)\n", stack_start, (void*)((int)stack_start + stacksize)); + VALGRIND_DEBUG("VALGRIND_STACK_REGISTER(%p, %p)\n", + stack_start, (void*)((int)stack_start + stacksize)); DEBUG("thread_stack_init\n"); @@ -203,7 +204,8 @@ void native_cpu_init(void) end_context.uc_stack.ss_flags = 0; makecontext(&end_context, sched_task_exit, 0); VALGRIND_STACK_REGISTER(__end_stack, __end_stack + sizeof(__end_stack)); - VALGRIND_DEBUG("VALGRIND_STACK_REGISTER(%p, %p)\n", __end_stack, (void*)((int)__end_stack + sizeof(__end_stack))); + VALGRIND_DEBUG("VALGRIND_STACK_REGISTER(%p, %p)\n", + (void*)__end_stack, (void*)((int)__end_stack + sizeof(__end_stack))); DEBUG("RIOT native cpu initialized.\n"); } diff --git a/cpu/x86/x86_memory.c b/cpu/x86/x86_memory.c index d9dacae4670299ca39c50bd8d6474272170d345b..19a0d928ee1edd03a8edf039f9a423f9f28ebbb7 100644 --- a/cpu/x86/x86_memory.c +++ b/cpu/x86/x86_memory.c @@ -283,13 +283,14 @@ static bool add_pages_to_pool(uint64_t start, uint64_t end) static void init_free_pages(void) { - printf("Kernel memory: %p - %p\r\n", &_kernel_memory_start, &_kernel_memory_end); - printf(" .text: %p - %p\r\n", &_section_text_start, &_section_text_end); - printf(" .rodata: %p - %p\r\n", &_section_rodata_start, &_section_rodata_end); - printf(" .data: %p - %p\r\n", &_section_data_start, &_section_data_end); - printf(" .bss: %p - %p\r\n", &_section_bss_start, &_section_bss_end); - printf("Unmapped memory: %p - %p\r\n", &_kernel_memory_end, &_heap_start); - printf("Heap start: %p\r\n", &_heap_start); + printf("Kernel memory: %p - %p\r\n", + (void *)&_kernel_memory_start, (void *)&_kernel_memory_end); + printf(" .text: %p - %p\r\n", (void *)&_section_text_start, (void *)&_section_text_end); + printf(" .rodata: %p - %p\r\n", (void *)&_section_rodata_start, (void *)&_section_rodata_end); + printf(" .data: %p - %p\r\n", (void *)&_section_data_start, (void *)&_section_data_end); + printf(" .bss: %p - %p\r\n", (void *)&_section_bss_start, (void *)&_section_bss_end); + printf("Unmapped memory: %p - %p\r\n", (void *)&_kernel_memory_end, (void *)&_heap_start); + printf("Heap start: %p\r\n", (void *)&_heap_start); unsigned long cnt = 0; uint64_t start, len; diff --git a/drivers/pir/pir.c b/drivers/pir/pir.c index 635bec41d6b30fd5a0197b9782e598570383be0c..3419e166945d6bb3c81e14cbac9596e889f6fadd 100644 --- a/drivers/pir/pir.c +++ b/drivers/pir/pir.c @@ -58,7 +58,7 @@ int pir_register_thread(pir_t *dev) } } else { - DEBUG("pir_register_thread: activating interrupt for %p..\n", dev); + DEBUG("pir_register_thread: activating interrupt for %p..\n", (void *)dev); if (pir_activate_int(dev) != 0) { DEBUG("\tfailed\n"); return -1; diff --git a/pkg/openwsn/patches/0005-fixes-to-RIOT-adaption.patch b/pkg/openwsn/patches/0005-fixes-to-RIOT-adaption.patch index ddf8e7e896a6f7e1b65af11f57438162c480cea4..8254bb376fe808732252838e0f87423b51df13b2 100644 Binary files a/pkg/openwsn/patches/0005-fixes-to-RIOT-adaption.patch and b/pkg/openwsn/patches/0005-fixes-to-RIOT-adaption.patch differ diff --git a/sys/net/network_layer/fib/fib.c b/sys/net/network_layer/fib/fib.c index a52faaed8a1de72c94b545f4ac7864af6eae4862..989fde912d0eea27a26cbb4966fd931020a7e4af 100644 --- a/sys/net/network_layer/fib/fib.c +++ b/sys/net/network_layer/fib/fib.c @@ -328,7 +328,7 @@ static int fib_signal_rp(fib_table_t *table, uint16_t type, uint8_t *dat, for (size_t i = 0; i < FIB_MAX_REGISTERED_RP; ++i) { if (table->notify_rp[i] != KERNEL_PID_UNDEF) { DEBUG("[fib_signal_rp] send msg@: %p to pid[%d]: %d\n", \ - msg.content.ptr, (int)i, (int)(table->notify_rp[i])); + (void *)msg.content.ptr, (int)i, (int)(table->notify_rp[i])); /* do only signal a RP if its registered prefix matches */ if (type != FIB_MSG_RP_SIGNAL_SOURCE_ROUTE_CREATED) { diff --git a/sys/posix/pthread/pthread.c b/sys/posix/pthread/pthread.c index 2156c4b66de05489d360f26f6912b1591a1e2306..3300203603bc4229b3c34b8e42adfdc62aa56159 100644 --- a/sys/posix/pthread/pthread.c +++ b/sys/posix/pthread/pthread.c @@ -108,7 +108,7 @@ static void *pthread_reaper(void *arg) while (1) { msg_t m; msg_receive(&m); - DEBUG("pthread_reaper(): free(%p)\n", m.content.ptr); + DEBUG("pthread_reaper(): free(%p)\n", (void *)m.content.ptr); free(m.content.ptr); }