feat: formatter and oslog()
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include <OS/Log.h>
|
||||
#include <Lib/String.h>
|
||||
#include <Lib/VAArgs.h>
|
||||
#include <IO/Serial.h>
|
||||
|
||||
void OSLog(const ASCII* format, ...) {
|
||||
ASCII buffer[kOSLogBufferSize];
|
||||
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
StringFormatVariadic(buffer, kOSLogBufferSize, format, args);
|
||||
va_end(args);
|
||||
|
||||
IOSerialPutString(buffer);
|
||||
}
|
||||
Reference in New Issue
Block a user