[util] Move remaining *printf impementations to util::format

I added util::format as a replacement for other printf implementations
last year, but it sat there only being used by the kernel all this time.
Now I've templated it so that it can be used by the bootloader, and
removed printf from panic.serial as well.
This commit is contained in:
Justin C. Miller
2023-02-01 22:25:17 -08:00
parent eba0127645
commit 86d458fc6c
9 changed files with 105 additions and 1518 deletions

View File

@@ -21,10 +21,6 @@ public:
void announce();
size_t print_hex(uint32_t n) const;
size_t print_dec(uint32_t n) const;
size_t print_long_hex(uint64_t n) const;
size_t print_long_dec(uint64_t n) const;
size_t printf(const wchar_t *fmt, ...) const;
static console & get() { return *s_console; }