mirror of
https://github.com/fail0verflow/mini.git
synced 2026-09-07 01:55:18 -05:00
add missing sprintf(), prototype was already there
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user