diff --git a/AK/MappedFile.cpp b/AK/MappedFile.cpp index 7fcc2c54106..3224e68665c 100644 --- a/AK/MappedFile.cpp +++ b/AK/MappedFile.cpp @@ -57,7 +57,7 @@ MappedFile::MappedFile(const StringView& file_name) } #ifdef DEBUG_MAPPED_FILE - dbgprintf("MappedFile{%s} := { fd=%d, m_size=%u, m_map=%p }\n", file_name.characters(), fd, m_size, m_map); + dbgprintf("MappedFile{%s} := { fd=%d, m_size=%zu, m_map=%p }\n", file_name.to_string().characters(), fd, m_size, m_map); #endif close(fd); diff --git a/AK/StringImpl.cpp b/AK/StringImpl.cpp index f90d0e632ad..2e7797db403 100644 --- a/AK/StringImpl.cpp +++ b/AK/StringImpl.cpp @@ -41,7 +41,7 @@ void dump_all_stringimpls() { unsigned i = 0; for (auto& it : *g_all_live_stringimpls) { - dbgprsize_tf("%u: \"%s\"\n", i, (*it).characters()); + dbgprintf("%u: \"%s\"\n", i, (*it).characters()); ++i; } } diff --git a/AK/Weakable.h b/AK/Weakable.h index 960b2a57c36..5d40a216324 100644 --- a/AK/Weakable.h +++ b/AK/Weakable.h @@ -30,7 +30,9 @@ #include "RefCounted.h" #include "RefPtr.h" -#define WEAKABLE_DEBUG +#ifndef WEAKABLE_DEBUG +# define WEAKABLE_DEBUG +#endif namespace AK { @@ -64,7 +66,7 @@ public: WeakPtr make_weak_ptr(); protected: - Weakable() {} + Weakable() { } ~Weakable() {