add missing sprintf(), prototype was already there

This commit is contained in:
dhewg 2010-07-04 17:56:03 +02:00
parent f4868989b7
commit aaba483ab7

13
utils.c
View File

@ -16,6 +16,8 @@ Copyright (C) 2008, 2009 Hector Martin "marcan" <marcan@marcansoft.com>
#include "gpio.h"
#include "hollywood.h"
#include <stdarg.h>
#ifndef LOADER
static char ascii(char s) {
if(s < 0x20) return '.';
@ -40,6 +42,17 @@ void hexdump(void *d, int len) {
gecko_printf("\n");
}
}
int sprintf(char *buffer, const char *fmt, ...)
{
va_list args;
int i;
va_start(args, fmt);
i = vsprintf(buffer, fmt, args);
va_end(args);
return i;
}
#endif
void udelay(u32 d)