From 35d98182c5b86c25eb4e7fd18fc68f240683960b Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 1 Mar 2015 14:40:30 -0500 Subject: vprintf and panic formatting --- include/kernel/panic.h | 2 +- include/stdio.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/kernel/panic.h b/include/kernel/panic.h index db53e8e..7baeaa9 100644 --- a/include/kernel/panic.h +++ b/include/kernel/panic.h @@ -1 +1 @@ -void panic(const char*, ...); +void panic(const char*, ...) __attribute__ ((format (printf, 1, 2))); diff --git a/include/stdio.h b/include/stdio.h index 49966cf..9bed898 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,7 @@ -int printf(const char* fmt, ...) __attribute__ ((format (printf, 1, 2)));; +#include + +int vprintf(const char* fmt, va_list); +int printf(const char* fmt, ...) __attribute__ ((format (printf, 1, 2))); int puts(const char*); int putchar(int); -- cgit v1.1