1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibCore: Replace fprintf(stderr)/printf() with warnln()/out()

This commit is contained in:
Linus Groh 2021-05-31 15:00:38 +01:00
parent 1b81b63663
commit 303358220b
3 changed files with 8 additions and 9 deletions

View file

@ -149,12 +149,12 @@ void Object::stop_timer()
void Object::dump_tree(int indent)
{
for (int i = 0; i < indent; ++i) {
printf(" ");
out(" ");
}
printf("%s{%p}", class_name(), this);
out("{}{{{:p}}}", class_name(), this);
if (!name().is_null())
printf(" %s", name().characters());
printf("\n");
out(" {}", name());
outln();
for_each_child([&](auto& child) {
child.dump_tree(indent + 2);