Index: uspace/lib/c/generic/rtld/dynamic.c
===================================================================
--- uspace/lib/c/generic/rtld/dynamic.c	(revision 582a0b84b0a73672531e7b404a89997af41ba0b9)
+++ uspace/lib/c/generic/rtld/dynamic.c	(revision b08e98baa9f9a43decb28ff503b56eed801651fd)
@@ -36,4 +36,5 @@
 
 #include <stdio.h>
+#include <inttypes.h>
 
 #include <rtld/elf_dyn.h>
@@ -105,13 +106,13 @@
 	info->dynamic = dyn_ptr;
 
-	DPRINTF("str_tab=0x%x, soname_idx=0x%x, soname=0x%x\n",
+	DPRINTF("str_tab=0x%" PRIxPTR ", soname_idx=0x%x, soname=0x%" PRIxPTR "\n",
 		(uintptr_t)info->soname, soname_idx, (uintptr_t)info->soname);
 	DPRINTF("soname='%s'\n", info->soname);
 	DPRINTF("rpath='%s'\n", info->rpath);
-	DPRINTF("hash=0x%x\n", (uintptr_t)info->hash);
-	DPRINTF("dt_rela=0x%x\n", (uintptr_t)info->rela);
-	DPRINTF("dt_rela_sz=0x%x\n", (uintptr_t)info->rela_sz);
-	DPRINTF("dt_rel=0x%x\n", (uintptr_t)info->rel);
-	DPRINTF("dt_rel_sz=0x%x\n", (uintptr_t)info->rel_sz);
+	DPRINTF("hash=0x%" PRIxPTR "\n", (uintptr_t)info->hash);
+	DPRINTF("dt_rela=0x%" PRIxPTR "\n", (uintptr_t)info->rela);
+	DPRINTF("dt_rela_sz=0x%" PRIxPTR "\n", (uintptr_t)info->rela_sz);
+	DPRINTF("dt_rel=0x%" PRIxPTR "\n", (uintptr_t)info->rel);
+	DPRINTF("dt_rel_sz=0x%" PRIxPTR "\n", (uintptr_t)info->rel_sz);
 
 	/*
Index: uspace/lib/c/generic/rtld/module.c
===================================================================
--- uspace/lib/c/generic/rtld/module.c	(revision 582a0b84b0a73672531e7b404a89997af41ba0b9)
+++ uspace/lib/c/generic/rtld/module.c	(revision b08e98baa9f9a43decb28ff503b56eed801651fd)
@@ -192,5 +192,5 @@
 
 	DPRINTF("filename:'%s'\n", name_buf);
-	DPRINTF("load '%s' at 0x%x\n", name_buf, m->bias);
+	DPRINTF("load '%s' at 0x%zx\n", name_buf, m->bias);
 
 	rc = elf_load_file_name(name_buf, m->bias, ELDF_RW, &info);
