1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibDebug: Convert a bunch of dbg() to dbgln()

This commit is contained in:
Andreas Kling 2021-01-09 15:07:10 +01:00
parent 08190dd0ce
commit d56f4f635a
5 changed files with 22 additions and 23 deletions

View file

@ -64,13 +64,13 @@ void DebugInfo::parse_scopes_impl(const Dwarf::DIE& die)
if (child.get_attribute(Dwarf::Attribute::Inline).has_value()) {
#ifdef DEBUG_SPAM
dbg() << "DWARF inlined functions are not supported";
dbgln("DWARF inlined functions are not supported");
#endif
return;
}
if (child.get_attribute(Dwarf::Attribute::Ranges).has_value()) {
#ifdef DEBUG_SPAM
dbg() << "DWARF ranges are not supported";
dbgln("DWARF ranges are not supported");
#endif
return;
}
@ -83,7 +83,7 @@ void DebugInfo::parse_scopes_impl(const Dwarf::DIE& die)
if (!child.get_attribute(Dwarf::Attribute::LowPc).has_value()) {
#ifdef DEBUG_SPAM
dbg() << "DWARF: Couldn't find attribute LowPc for scope";
dbgln("DWARF: Couldn't find attribute LowPc for scope");
#endif
return;
}
@ -215,7 +215,7 @@ static Optional<Dwarf::DIE> parse_variable_type_die(const Dwarf::DIE& variable_d
if (type_name.has_value()) {
variable_info.type_name = type_name.value().data.as_string;
} else {
dbg() << "Unnamed DWARF type at offset: " << type_die.offset();
dbgln("Unnamed DWARF type at offset: {}", type_die.offset());
variable_info.name = "[Unnamed Type]";
}