[Zion] Remove early_dbgln since dbgln no longer allocs.

This commit is contained in:
Drew Galbraith 2023-11-15 15:19:02 -08:00
parent 20d6d2aaaf
commit c5b9d20c7e
4 changed files with 3 additions and 20 deletions

View file

@ -6,20 +6,8 @@
#include "include/ztypes.h"
// Debug line without formatting for
// before allocations are available.
void early_dbgln(const char* str);
void dbgln(const glcr::StringView& str);
// TODO: Write a version of StrFormat that
// accepts a fix-sized buffer for output
// to use in the kernel. That way we make
// dbgln and panic calls without allocation.
// Optionally, add a dbgln_unbounded method for
// things like the Debug syscall where the formatted
// string may be fairly large.
template <typename... Args>
void dbgln(const char* str, Args... args) {
char buffer[256];