Use the bloated string formatting functions from newlib

This commit is contained in:
TuxSH
2018-05-05 18:35:00 +02:00
parent 67b76cc8f1
commit 30b9873ab3
6 changed files with 19 additions and 1723 deletions

View File

@@ -2,9 +2,9 @@
* Kernel print functions.
*/
#include <stdio.h>
#include "printk.h"
#include "vsprintf.h"
#include "../display/video_fb.h"
/**

File diff suppressed because it is too large Load Diff

View File

@@ -1,28 +0,0 @@
/*
* 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 sprintf(char *buf, const char *fmt, ...);
int scnprintf(char *buf, size_t size, const char *fmt, ...);
int snprintf(char *buf, size_t size, const char *fmt, ...);
int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
int sscanf(const char *buf, const char *fmt, ...);
#endif /* VSPRINTF_H */