git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
twimap.c
diff --git
a/lunaix-os/kernel/fs/twimap.c
b/lunaix-os/kernel/fs/twimap.c
index 2371eb8b257b63b1991986e5f04a954ee324798f..1021db077e924f047cc0a203f2f48eac3bd53cb5 100644
(file)
--- a/
lunaix-os/kernel/fs/twimap.c
+++ b/
lunaix-os/kernel/fs/twimap.c
@@
-3,7
+3,7
@@
#include <lunaix/mm/valloc.h>
#include <lunaix/spike.h>
#include <lunaix/mm/valloc.h>
#include <lunaix/spike.h>
-#include <klibc/st
dio
.h>
+#include <klibc/st
rfmt
.h>
#include <klibc/string.h>
#define TWIMAP_BUFFER_SIZE 4096
#include <klibc/string.h>
#define TWIMAP_BUFFER_SIZE 4096
@@
-80,7
+80,7
@@
twimap_printf(struct twimap* mapping, const char* fmt, ...)
char* buf = mapping->buffer + mapping->size_acc;
mapping->size_acc +=
char* buf = mapping->buffer + mapping->size_acc;
mapping->size_acc +=
-
__ksprintf_internal
(buf, fmt, TWIMAP_BUFFER_SIZE, args) - 1;
+
ksnprintfv
(buf, fmt, TWIMAP_BUFFER_SIZE, args) - 1;
va_end(args);
}
va_end(args);
}