serenity/Kernel/kstdio.h

21 lines
375 B
C
Raw Normal View History

#pragma once
#include <AK/Types.h>
2019-04-10 20:49:11 +00:00
extern "C" {
int dbgprintf(const char* fmt, ...);
int dbgputstr(const char*, int);
int kprintf(const char* fmt, ...);
int ksprintf(char* buf, const char* fmt, ...);
void set_serial_debug(bool on_or_off);
int get_serial_debug();
2019-04-10 20:49:11 +00:00
}
2019-01-10 21:52:14 +00:00
2019-01-13 03:31:16 +00:00
#ifndef USERLAND
# define printf dbgprintf
2019-01-13 03:31:16 +00:00
#endif
#ifndef __serenity__
#define dbgprintf printf
#endif