ladybird/Kernel/kstdio.h

21 lines
375 B
C
Raw Normal View History

#pragma once
#include <AK/Types.h>
2019-04-10 22:49:11 +02: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 22:49:11 +02:00
}
2019-01-10 22:52:14 +01:00
2019-01-13 04:31:16 +01:00
#ifndef USERLAND
# define printf dbgprintf
2019-01-13 04:31:16 +01:00
#endif
#ifndef __serenity__
#define dbgprintf printf
#endif