diff options
author | Linus Groh <mail@linusgroh.de> | 2020-10-04 15:44:40 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-04 19:22:02 +0200 |
commit | 5de5af60c1f34315f6f2546359f35ecee35a3d67 (patch) | |
tree | 68f5875d111224b856bd6fc9bb2f00fb99d44830 /Libraries/LibJS | |
parent | 123f98201e2447b6628487a5a753d4bcd840d554 (diff) | |
download | serenity-5de5af60c1f34315f6f2546359f35ecee35a3d67.zip |
LibJS: Replace a few dbg() with dbgln()
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r-- | Libraries/LibJS/Heap/Heap.cpp | 16 | ||||
-rw-r--r-- | Libraries/LibJS/MarkupGenerator.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibJS/Runtime/VM.cpp | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/Libraries/LibJS/Heap/Heap.cpp b/Libraries/LibJS/Heap/Heap.cpp index cbb012763c..7cde425888 100644 --- a/Libraries/LibJS/Heap/Heap.cpp +++ b/Libraries/LibJS/Heap/Heap.cpp @@ -285,14 +285,14 @@ void Heap::sweep_dead_cells(bool print_report, const Core::ElapsedTimer& measure int time_spent = measurement_timer.elapsed(); if (print_report) { - dbg() << "Garbage collection report"; - dbg() << "============================================="; - dbg() << " Time spent: " << time_spent << " ms"; - dbg() << " Live cells: " << live_cells << " (" << live_cell_bytes << " bytes)"; - dbg() << "Collected cells: " << collected_cells << " (" << collected_cell_bytes << " bytes)"; - dbg() << " Live blocks: " << m_blocks.size() << " (" << m_blocks.size() * HeapBlock::block_size << " bytes)"; - dbg() << " Freed blocks: " << empty_blocks.size() << " (" << empty_blocks.size() * HeapBlock::block_size << " bytes)"; - dbg() << "============================================="; + dbgln("Garbage collection report"); + dbgln("============================================="); + dbgln(" Time spent: {} ms", time_spent); + dbgln(" Live cells: {} ({} bytes)", live_cells, live_cell_bytes); + dbgln("Collected cells: {} ({} bytes)", collected_cells, collected_cell_bytes); + dbgln(" Live blocks: {} ({} bytes)", m_blocks.size(), m_blocks.size() * HeapBlock::block_size); + dbgln(" Freed blocks: {} ({} bytes)", empty_blocks.size(), empty_blocks.size() * HeapBlock::block_size); + dbgln("============================================="); } } diff --git a/Libraries/LibJS/MarkupGenerator.cpp b/Libraries/LibJS/MarkupGenerator.cpp index 555c3bdd6d..f08ab55b0a 100644 --- a/Libraries/LibJS/MarkupGenerator.cpp +++ b/Libraries/LibJS/MarkupGenerator.cpp @@ -331,7 +331,7 @@ MarkupGenerator::StyleType MarkupGenerator::style_type_for_token(Token token) case TokenType::Identifier: return StyleType::Identifier; default: - dbg() << "Unknown style type for token " << token.name(); + dbgln("Unknown style type for token {}", token.name()); ASSERT_NOT_REACHED(); } } diff --git a/Libraries/LibJS/Runtime/VM.cpp b/Libraries/LibJS/Runtime/VM.cpp index 40c48102fd..5791c30b83 100644 --- a/Libraries/LibJS/Runtime/VM.cpp +++ b/Libraries/LibJS/Runtime/VM.cpp @@ -255,13 +255,13 @@ void VM::throw_exception(Exception* exception) #ifdef VM_DEBUG if (exception->value().is_object() && exception->value().as_object().is_error()) { auto& error = static_cast<Error&>(exception->value().as_object()); - dbg() << "Throwing JavaScript Error: " << error.name() << ", " << error.message(); + dbgln("Throwing JavaScript Error: {}, {}", error.name(), error.message()); for (ssize_t i = m_call_stack.size() - 1; i >= 0; --i) { auto function_name = m_call_stack[i].function_name; if (function_name.is_empty()) function_name = "<anonymous>"; - dbg() << " " << function_name; + dbgln(" {}", function_name); } } #endif |