Skip to content

Commit

Permalink
Kernel: Remove dbgprintf() from kernel
Browse files Browse the repository at this point in the history
There are no remaining users of this API in the kernel.
  • Loading branch information
awesomekling committed Feb 17, 2021
1 parent d9bf4b4 commit e4d84b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
23 changes: 0 additions & 23 deletions Kernel/kprintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}
1 change: 0 additions & 1 deletion Kernel/kstdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <AK/Types.h>

extern "C" {
int dbgprintf(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
int dbgputstr(const char*, int);
int kernelputstr(const char*, int);
int kprintf(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
Expand Down

0 comments on commit e4d84b5

Please sign in to comment.