Index: uspace/app/mkfat/mkfat.c
===================================================================
--- uspace/app/mkfat/mkfat.c	(revision 95e6c4f6c1055b3d734583025a43dbb40c085317)
+++ uspace/app/mkfat/mkfat.c	(revision fb6f1a5becf4ed481c7d009a226723cae1c82b9d)
@@ -44,4 +44,6 @@
 #include <devmap.h>
 #include <byteorder.h>
+#include <sys/types.h>
+#include <inttypes.h>
 #include <errno.h>
 #include "fat.h"
@@ -157,5 +159,6 @@
 		printf(NAME ": Warning, failed to obtain block device size.\n");
 	} else {
-		printf(NAME ": Block device has %llu blocks.\n", dev_nblocks);
+		printf(NAME ": Block device has %" PRIu64 " blocks.\n",
+		    (uint64_t) dev_nblocks);
 		cfg.total_sectors = dev_nblocks;
 	}
Index: uspace/app/taskdump/taskdump.c
===================================================================
--- uspace/app/taskdump/taskdump.c	(revision 95e6c4f6c1055b3d734583025a43dbb40c085317)
+++ uspace/app/taskdump/taskdump.c	(revision fb6f1a5becf4ed481c7d009a226723cae1c82b9d)
@@ -245,5 +245,5 @@
 	printf("Threads:\n");
 	for (i = 0; i < n_threads; i++) {
-		printf(" [%d] hash: 0x%lx\n", 1+i, thash_buf[i]);
+		printf(" [%d] hash: %p\n", 1+i, thash_buf[i]);
 
 		thread_dump(thash_buf[i]);
@@ -289,5 +289,5 @@
 	printf("Address space areas:\n");
 	for (i = 0; i < n_areas; i++) {
-		printf(" [%d] flags: %c%c%c%c base: 0x%lx size: 0x%lx\n", 1+i,
+		printf(" [%d] flags: %c%c%c%c base: %p size: %p\n", 1+i,
 		    (ainfo_buf[i].flags & AS_AREA_READ) ? 'R' : '-',
 		    (ainfo_buf[i].flags & AS_AREA_WRITE) ? 'W' : '-',
@@ -328,5 +328,5 @@
 
 	sym_pc = fmt_sym_address(pc);
-	printf("Thread 0x%lx crashed at %s. FP = 0x%lx\n", thash, sym_pc, fp);
+	printf("Thread %p crashed at %s. FP = %p\n", thash, sym_pc, fp);
 	free(sym_pc);
 
Index: uspace/app/trace/ipcp.c
===================================================================
--- uspace/app/trace/ipcp.c	(revision 95e6c4f6c1055b3d734583025a43dbb40c085317)
+++ uspace/app/trace/ipcp.c	(revision fb6f1a5becf4ed481c7d009a226723cae1c82b9d)
@@ -279,5 +279,5 @@
 
 	if ((display_mask & DM_IPC) != 0) {
-		printf("Response to 0x%lx: retval=%ld, args = (%lu, %lu, %lu, %lu, %lu)\n",
+		printf("Response to %p: retval=%ld, args = (%lu, %lu, %lu, %lu, %lu)\n",
 			hash, retval, IPC_GET_ARG1(*answer),
 			IPC_GET_ARG2(*answer), IPC_GET_ARG3(*answer),
@@ -336,5 +336,5 @@
 		/* Not a response */
 		if ((display_mask & DM_IPC) != 0) {
-			printf("Not a response (hash 0x%lx)\n", hash);
+			printf("Not a response (hash %p)\n", hash);
 		}
 		return;
Index: uspace/app/trace/trace.c
===================================================================
--- uspace/app/trace/trace.c	(revision 95e6c4f6c1055b3d734583025a43dbb40c085317)
+++ uspace/app/trace/trace.c	(revision fb6f1a5becf4ed481c7d009a226723cae1c82b9d)
@@ -198,5 +198,5 @@
 	printf("Threads:");
 	for (i = 0; i < n_threads; i++) {
-		printf(" [%d] (hash 0x%lx)", 1+i, thread_hash_buf[i]);
+		printf(" [%d] (hash %p)", 1+i, thread_hash_buf[i]);
 	}
 	printf("\ntotal of %u threads\n", tb_needed / sizeof(uintptr_t));
@@ -222,5 +222,5 @@
 	case V_HASH:
 	case V_PTR:
-		printf("0x%08lx", val);
+		printf("%p", val);
 		break;
 
@@ -508,5 +508,5 @@
 	}
 
-	printf("Start tracing thread [%d] (hash 0x%lx).\n", thread_id, thread_hash);
+	printf("Start tracing thread [%d] (hash %p).\n", thread_id, thread_hash);
 
 	while (!abort_trace) {
@@ -552,5 +552,5 @@
 				break;
 			case UDEBUG_EVENT_THREAD_E:
-				printf("Thread 0x%lx exited.\n", val0);
+				printf("Thread %p exited.\n", val0);
 				fibril_mutex_lock(&state_lock);
 				abort_trace = true;
