2020-02-09 17:28:56 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-02-09 17:28:56 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-08-13 07:25:05 +03:00
|
|
|
#include <AK/StringView.h>
|
2020-02-09 17:28:56 +03:00
|
|
|
#include <AK/Types.h>
|
|
|
|
|
|
|
|
extern "C" {
|
2021-03-12 19:29:37 +03:00
|
|
|
void dbgputstr(const char*, size_t);
|
|
|
|
void kernelputstr(const char*, size_t);
|
2021-04-16 22:58:51 +03:00
|
|
|
void kernelcriticalputstr(const char*, size_t);
|
2021-09-10 21:46:54 +03:00
|
|
|
void kernelearlyputstr(const char*, size_t);
|
2020-12-25 07:12:40 +03:00
|
|
|
int snprintf(char* buf, size_t, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
|
2020-02-09 17:28:56 +03:00
|
|
|
void set_serial_debug(bool on_or_off);
|
|
|
|
int get_serial_debug();
|
|
|
|
}
|
2021-08-13 07:25:05 +03:00
|
|
|
|
|
|
|
void dbgputstr(StringView view);
|