summaryrefslogtreecommitdiff
path: root/src/console/vsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/vsprintf.c')
-rw-r--r--src/console/vsprintf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/console/vsprintf.c b/src/console/vsprintf.c
index 7f3e33c3cc..c4c91115c2 100644
--- a/src/console/vsprintf.c
+++ b/src/console/vsprintf.c
@@ -20,6 +20,7 @@
*/
#include <stdarg.h>
+#include <string.h>
#include <smp/spinlock.h>
#include <console/vtxprintf.h>
@@ -48,8 +49,6 @@ static int vsprintf(char *buf, const char *fmt, va_list args)
return i;
}
-int sprintf(char *buf, const char *fmt, ...);
-
int sprintf(char *buf, const char *fmt, ...)
{
va_list args;