mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-25 15:39:55 +00:00
3026c37d5d
serial_debug will output all the kprintf and dbgprintf data to COM1 at 8-N-1 57600 baud. this is particularly useful for debugging the boot process on live hardware. Note: it must be the first parameter in the boot cmdline.
20 lines
375 B
C
20 lines
375 B
C
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
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();
|
|
}
|
|
|
|
#ifndef USERLAND
|
|
# define printf dbgprintf
|
|
#endif
|
|
|
|
#ifndef __serenity__
|
|
#define dbgprintf printf
|
|
#endif
|