os/lib/acpica-build/printf.c
Mathieu Strypsteen 68684e3817
All checks were successful
Build / build (push) Successful in 2m45s
Remove stb_sprintf
2024-12-18 13:42:12 +01:00

17 lines
361 B
C

#include <acpi.h>
#include <acclib.h>
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];
vsnprintf(buffer, 4096, format, args);
AcpiOsPrint(buffer);
}