mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-16 16:39:25 +01:00
add missing sprintf(), prototype was already there
This commit is contained in:
parent
f4868989b7
commit
aaba483ab7
13
utils.c
13
utils.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user