void os::paging::page_allocator_t::print_all() const {
if (is_empty()) {
- os::println("No RAM left.");
+ os::print("No RAM left.\n");
} else for (auto it = begin(); it != end(); it = it->next) {
os::print(it.get_phys_addr());
os::print("->");
void os::assert(bool cond, const char* diagnostic) {
if (!cond) {
os::print("Error: ");
- os::println(diagnostic);
+ os::print(diagnostic);
+ os::printc('\n');
os::cli();
while (true) { os::hlt(); }
}
void print(std::int32_t v);
void print(std::int16_t v);
void print(std::int8_t v);
-template <typename T>
-void println(const T& v) {
- print(v);
- printc('\n');
-}
void assert(bool cond, const char* diagnostic);
}