mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
Kernel: Remove dbgprintf() from kernel
There are no remaining users of this API in the kernel.
This commit is contained in:
parent
d9bf4b4d41
commit
e4d84b5e79
2 changed files with 0 additions and 24 deletions
|
@ -183,11 +183,6 @@ static void debugger_out(char ch)
|
|||
IO::out8(0xe9, ch);
|
||||
}
|
||||
|
||||
static void debugger_putch(char*&, char ch)
|
||||
{
|
||||
debugger_out(ch);
|
||||
}
|
||||
|
||||
extern "C" int dbgputstr(const char* characters, int length)
|
||||
{
|
||||
if (!characters)
|
||||
|
@ -207,21 +202,3 @@ extern "C" int kernelputstr(const char* characters, int length)
|
|||
console_out(characters[i]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vdbgprintf(const char* fmt, va_list ap)
|
||||
{
|
||||
ScopedSpinLock lock(s_log_lock);
|
||||
color_on();
|
||||
int ret = printf_internal(debugger_putch, nullptr, fmt, ap);
|
||||
color_off();
|
||||
return ret;
|
||||
}
|
||||
|
||||
extern "C" int dbgprintf(const char* fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
int ret = vdbgprintf(fmt, ap);
|
||||
va_end(ap);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue