Browse Source

use log buffer

master
Mathieu Serandour 1 year ago
parent
commit
6388f09192
  1. 3
      kernel/debug/logging.c

3
kernel/debug/logging.c

@ -19,7 +19,7 @@ static int i = 0;
// if there is enough space remaining.
// else, leave it as is
static inline void append_string(const char* str) {
return;
unsigned len = strlen(str);
if(i+len >= BUFFER_SIZE)
klog_flush();
@ -57,7 +57,6 @@ void klog(unsigned level, const char* string) {
kputs(string);
kputs("\n");
return;
// append to the buffer
append_string(level_name);

Loading…
Cancel
Save