mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
Kernel: Add dbgputch() to kstdio.h
This adds a dbgputch() alongside dbgputstr() in kstdio.h. The function already existed as the static function debugger_out(). It has now been exposed to users of kstdio.h.
This commit is contained in:
parent
441d6dcdf9
commit
67067904f5
2 changed files with 3 additions and 2 deletions
|
@ -145,7 +145,7 @@ int snprintf(char* buffer, size_t size, const char* fmt, ...)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void debugger_out(char ch)
|
extern "C" void dbgputch(char ch)
|
||||||
{
|
{
|
||||||
if (serial_debug)
|
if (serial_debug)
|
||||||
serial_putch(ch);
|
serial_putch(ch);
|
||||||
|
@ -158,7 +158,7 @@ extern "C" void dbgputstr(const char* characters, size_t length)
|
||||||
return;
|
return;
|
||||||
ScopedSpinLock lock(s_log_lock);
|
ScopedSpinLock lock(s_log_lock);
|
||||||
for (size_t i = 0; i < length; ++i)
|
for (size_t i = 0; i < length; ++i)
|
||||||
debugger_out(characters[i]);
|
dbgputch(characters[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void kernelputstr(const char* characters, size_t length)
|
extern "C" void kernelputstr(const char* characters, size_t length)
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
void dbgputch(char);
|
||||||
void dbgputstr(const char*, size_t);
|
void dbgputstr(const char*, size_t);
|
||||||
void kernelputstr(const char*, size_t);
|
void kernelputstr(const char*, size_t);
|
||||||
void kernelcriticalputstr(const char*, size_t);
|
void kernelcriticalputstr(const char*, size_t);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue