diff --git a/kernel/include/logging.hpp b/kernel/include/logging.hpp index d5664a9a..6df14784 100644 --- a/kernel/include/logging.hpp +++ b/kernel/include/logging.hpp @@ -29,11 +29,6 @@ void log(log_level level, const char* s); void log(log_level level, const std::string& s); void logf(log_level level, const char* s, ...); -//TODO Deprecate theses -void log(const char* s); -void logf(const char* s, ...); -void log(const std::string& s); - } //end of namespace logging #endif diff --git a/kernel/src/logging.cpp b/kernel/src/logging.cpp index cf98eb70..6ab5e14e 100644 --- a/kernel/src/logging.cpp +++ b/kernel/src/logging.cpp @@ -88,45 +88,6 @@ void logging::to_file(){ } } -void logging::log(const char* s){ - if(!is_early()){ - //TODO Display the string in the kernel terminal - } - - if(is_file()){ - append_to_file(s, std::str_len(s)); - } else { - thor_assert(current_early < MAX_EARLY, "early log buffer is full"); - - early_logs[current_early++] = s; - } -} - -void logging::logf(const char* format, ...){ - thor_assert(!is_early(), "log(string) in only valid in normal mode"); - thor_assert(is_file(), "log(string) in only valid file mode"); - - //TODO Display the string in the kernel terminal - - va_list va; - va_start(va, format); - - auto s = vsprintf(format, va); - - va_end(va); - - append_to_file(s.c_str(), s.size()); -} - -void logging::log(const std::string& s){ - thor_assert(!is_early(), "log(string) in only valid in normal mode"); - thor_assert(is_file(), "log(string) in only valid file mode"); - - //TODO Display the string in the kernel terminal - - append_to_file(s.c_str(), s.size()); -} - void logging::log(log_level level, const char* s){ //First, print to the virtual debugger virtual_debug(level_to_string(level));