Index: kernel/generic/include/panic.h
===================================================================
--- kernel/generic/include/panic.h	(revision 06737a07ba2ef01fe8fbdb942d826c4ad9952c15)
+++ kernel/generic/include/panic.h	(revision f37f81191e1d41ef7d1cc5b6d9a9eaae109ddb4d)
@@ -37,4 +37,5 @@
 
 #include <typedefs.h>
+#include <print.h>
 
 #define panic(fmt, ...) \
@@ -62,5 +63,6 @@
 
 extern void panic_common(panic_category_t, struct istate *, int,
-    uintptr_t, const char *, ...) __attribute__ ((noreturn));
+    uintptr_t, const char *, ...) __attribute__ ((noreturn))
+    PRINTF_ATTRIBUTE(5, 6);
 
 #endif
