mirror of
https://github.com/drasko/codezero.git
synced 2026-04-05 11:39:04 +02:00
Initial commit
This commit is contained in:
18
include/l4/lib/printk.h
Normal file
18
include/l4/lib/printk.h
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
#ifndef __PRINTK_H__
|
||||
#define __PRINTK_H__
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#if defined(ARCH_TEST)
|
||||
/* For host tests all printks mean printf using the host C library */
|
||||
#include <stdio.h>
|
||||
#define printk printf
|
||||
#elif !defined(__KERNEL__)
|
||||
#define printk printf
|
||||
#else
|
||||
int printk(char *format, ...) __attribute__((format (printf, 1, 2)));
|
||||
extern void putc(char c);
|
||||
#endif
|
||||
|
||||
#endif /* __PRINTK_H__ */
|
||||
Reference in New Issue
Block a user