This commit is contained in:
parent
6119ebd5b9
commit
68684e3817
2 changed files with 12 additions and 1918 deletions
|
@ -1,17 +1,17 @@
|
|||
#include <acpi.h>
|
||||
#define STB_SPRINTF_IMPLEMENTATION
|
||||
#include "sprintf.h"
|
||||
|
||||
extern void AcpiOsPrint(const char* str);
|
||||
#include <acclib.h>
|
||||
|
||||
void AcpiOsPrintf(const char* format, ...) {
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
AcpiOsVprintf(format, args);
|
||||
va_end(args);
|
||||
extern void AcpiOsPrint(const char *str);
|
||||
|
||||
void AcpiOsPrintf(const char *format, ...) {
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
AcpiOsVprintf(format, args);
|
||||
va_end(args);
|
||||
}
|
||||
void AcpiOsVprintf(const char* format, va_list args) {
|
||||
char buffer[4096];
|
||||
stbsp_vsnprintf(buffer, 4096, format, args);
|
||||
AcpiOsPrint(buffer);
|
||||
void AcpiOsVprintf(const char *format, va_list args) {
|
||||
char buffer[4096];
|
||||
vsnprintf(buffer, 4096, format, args);
|
||||
AcpiOsPrint(buffer);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue