mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
6fa42af567
commit
843ebbd2c3
15 changed files with 46 additions and 21 deletions
|
@ -188,7 +188,7 @@ void ColumnsView::push_column(const ModelIndex& parent_index)
|
|||
if (m_columns[i].parent_index == grandparent)
|
||||
break;
|
||||
m_columns.shrink(i);
|
||||
dbg() << "Dropping column " << i;
|
||||
dbgln("Dropping column {}", i);
|
||||
}
|
||||
|
||||
// Add the new column.
|
||||
|
|
|
@ -71,7 +71,7 @@ bool Desktop::set_wallpaper(const StringView& path, bool save_config)
|
|||
|
||||
if (ret_val && save_config) {
|
||||
RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("WindowManager");
|
||||
dbg() << "Saving wallpaper path '" << path << "' to config file at " << config->file_name();
|
||||
dbgln("Saving wallpaper path '{}' to config file at {}", path, config->file_name());
|
||||
config->write_entry("Background", "Wallpaper", path);
|
||||
config->sync();
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ int Dialog::exec()
|
|||
show();
|
||||
auto result = m_event_loop->exec();
|
||||
m_event_loop = nullptr;
|
||||
dbg() << *this << ": Event loop returned with result " << result;
|
||||
dbgln("{}: Event loop returned with result {}", *this, result);
|
||||
remove_from_parent();
|
||||
return result;
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ void Dialog::done(int result)
|
|||
if (!m_event_loop)
|
||||
return;
|
||||
m_result = result;
|
||||
dbg() << *this << ": Quit event loop with result " << result;
|
||||
dbgln("{}: Quit event loop with result {}", *this, result);
|
||||
m_event_loop->quit(result);
|
||||
}
|
||||
|
||||
|
|
|
@ -61,3 +61,7 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<GUI::Dialog> : Formatter<Core::Object> {
|
||||
};
|
||||
|
|
|
@ -145,7 +145,7 @@ void FileSystemModel::Node::traverse_if_needed()
|
|||
return;
|
||||
}
|
||||
fcntl(m_watch_fd, F_SETFD, FD_CLOEXEC);
|
||||
dbg() << "Watching " << full_path << " for changes, m_watch_fd = " << m_watch_fd;
|
||||
dbgln("Watching {} for changes, m_watch_fd={}", full_path, m_watch_fd);
|
||||
m_notifier = Core::Notifier::construct(m_watch_fd, Core::Notifier::Event::Read);
|
||||
m_notifier->on_ready_to_read = [this] {
|
||||
char buffer[32];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue