From 36e8ee0cdaa904ee00710b1d2df16691729cc93d Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 2 Feb 2021 22:27:27 +0200 Subject: Print some multiboot2 information --- libk/stdlib/console.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'libk/stdlib/console.cc') diff --git a/libk/stdlib/console.cc b/libk/stdlib/console.cc index dbc9b86..dee6a8f 100644 --- a/libk/stdlib/console.cc +++ b/libk/stdlib/console.cc @@ -2,18 +2,13 @@ static Console *global_console = nullptr; -void console_set(Console *ptr) { +void Console::set(Console *ptr) { if (ptr != nullptr) { global_console = ptr; } } -void printk(const String &msg) { - if (global_console == nullptr) - return; - - global_console->write(msg); -} +Console *Console::get() { return global_console; } void abort() { /* -- cgit v1.2.1