Index: kernel/arch/ia64/include/types.h
===================================================================
--- kernel/arch/ia64/include/types.h	(revision 009474f3b223044d79e0f170d6e75e53e2669d14)
+++ kernel/arch/ia64/include/types.h	(revision 3abe472f1a4f6b786d6b42b5f714cad40e76457f)
@@ -66,4 +66,27 @@
 typedef int64_t native_t;
 
+#define PRIp "lx"	/**< Format for uintptr_t. */
+#define PRIs "lu"	/**< Format for size_t. */
+#define PRIc "lu"	/**< Format for count_t. */
+#define PRIi "lu"	/**< Format for index_t. */
+
+#define PRId8 "d"	/**< Format for int8_t. */
+#define PRId16 "d"	/**< Format for int16_t. */
+#define PRId32 "d"	/**< Format for int32_t. */
+#define PRId64 "ld"	/**< Format for int64_t. */
+#define PRIdn "d"	/**< Format for native_t. */
+
+#define PRIu8 "u"	/**< Format for uint8_t. */
+#define PRIu16 "u"	/**< Format for uint16_t. */
+#define PRIu32 "u"	/**< Format for uint32_t. */
+#define PRIu64 "lu"	/**< Format for uint64_t. */
+#define PRIun "u"	/**< Format for unative_t. */
+
+#define PRIx8 "x"	/**< Format for hexadecimal (u)int8_t. */
+#define PRIx16 "x"	/**< Format for hexadecimal (u)int16_t. */
+#define PRIx32 "x"	/**< Format for hexadecimal (u)uint32_t. */
+#define PRIx64 "lx"	/**< Format for hexadecimal (u)int64_t. */
+#define PRIxn "x"	/**< Format for hexadecimal (u)native_t. */
+
 #endif
 
Index: uspace/lib/libc/arch/ia64/src/entry.s
===================================================================
--- uspace/lib/libc/arch/ia64/src/entry.s	(revision 009474f3b223044d79e0f170d6e75e53e2669d14)
+++ uspace/lib/libc/arch/ia64/src/entry.s	(revision 3abe472f1a4f6b786d6b42b5f714cad40e76457f)
@@ -32,5 +32,4 @@
 
 .globl __entry
-.globl __entry_driver
 
 ## User-space task entry point
@@ -42,15 +41,4 @@
 	br.call.sptk.many b0 = __main
 0:
-	br.call.sptk.many b0 = __io_init
-1:
-	br.call.sptk.many b0 = main
-2:
-	br.call.sptk.many b0 = __exit
-
-__entry_driver:
-	alloc loc0 = ar.pfs, 0, 1, 2, 0
-	mov r1 = _gp 
-	br.call.sptk.many b0 = __main
-0:
 	br.call.sptk.many b0 = main
 1:
