]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Removed println and replaced its usages by corresponding print calls
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Sun, 12 Jun 2022 11:15:02 +0000 (13:15 +0200)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Sun, 12 Jun 2022 11:15:02 +0000 (13:15 +0200)
src/paging.cpp
src/serial.cpp
src/serial.hpp

index 56b71350b595ad6eb016e168516cc60dbf26d043..9c2f13365cab575aba5ebce83f98f2bf19bf1220 100644 (file)
@@ -38,7 +38,7 @@ os::paging::page_allocator_t::page_allocator_t(phys_ptr<paging::page> one_past_e
 
 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("->");
index e60413ba64a7b5d590a27ee749fa22e47313e85d..5a8e8dfba02785a7be1c08332d48ee22a42665d4 100644 (file)
@@ -68,7 +68,8 @@ void os::print(std::int8_t v)   { os::print(std::int64_t(v));  }
 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(); }
        }
index d1594564a3039e0d504ec41c305a09578ecb3094..07b61c5222b280427f545433c173f2ea7737b10d 100644 (file)
@@ -23,11 +23,6 @@ void print(std::int64_t v);
 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);
 
 }