kernel: add stub logging function
This commit is contained in:
6
include/socks/printk.h
Normal file
6
include/socks/printk.h
Normal 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
9
kernel/printk.c
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user