kernel: add stub logging function

This commit is contained in:
2023-02-03 20:26:02 +00:00
parent c65f034e0e
commit bcdf101779
2 changed files with 15 additions and 0 deletions

6
include/socks/printk.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef SOCKS_PRINTK_H_
#define SOCKS_PRINTK_H_
extern int printk(const char *format, ...);
#endif

9
kernel/printk.c Normal file
View File

@@ -0,0 +1,9 @@
#define LOG_BUFFER_SIZE 0x40000
static char log_buffer[LOG_BUFFER_SIZE] = {0};
int printk(const char *format, ...)
{
return 0;
}