Change fusee folder naming

This commit is contained in:
Michael Scire committed 2018-04-07 21:45:57 -06:00
1 parent 2c7d6dc9b7
commit 18f1274587
171 files changed
+12 -12

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
/**
* Kernel print functions.
*/
#include "printk.h"
#include "vsprintf.h"
#include "../display/video_fb.h"
/**
* Temporary stand-in main printk.
*
* TODO: This should print via UART, console framebuffer, and to a ring for
* consumption by Horizon
*/
void printk(char *fmt, ...)
{
va_list list;
char buf[512];
va_start(list, fmt);
vsnprintf(buf, sizeof(buf), fmt, list);
video_puts(buf);
va_end(list);
}
+2
View File
@@ -0,0 +1,2 @@
void printk(char *fmt, ...);
File diff suppressed because it is too large. Load diff
+24
View File
@@ -0,0 +1,24 @@
/*
* Copyright (C) 2011 Andrei Warkentin <andrey.warkentin@gmail.com>
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <stdarg.h>
#include <stdlib.h>
#ifndef VSPRINTF_H
#define VSPRINTF_H
struct va_format {
const char *fmt;
va_list *va;
};
unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base);
int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
#endif /* VSPRINTF_H */