diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-31 15:05:29 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-31 17:43:54 +0100 |
commit | a4bd29828c18f10de2620cf74575f35814637611 (patch) | |
tree | cda1bcefd664f21a52b367f6a141f6d75390dbab /Userland | |
parent | 634db1880956319bc2e4d74e68c75f4c8772ca0d (diff) | |
download | serenity-a4bd29828c18f10de2620cf74575f35814637611.zip |
LibGUI: Replace fprintf(stderr)/printf() with warnln()/dbgln()
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/FileSystemModel.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/TextEditor.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGUI/FileSystemModel.cpp b/Userland/Libraries/LibGUI/FileSystemModel.cpp index dd83c7204b..39580681ce 100644 --- a/Userland/Libraries/LibGUI/FileSystemModel.cpp +++ b/Userland/Libraries/LibGUI/FileSystemModel.cpp @@ -93,7 +93,7 @@ void FileSystemModel::Node::traverse_if_needed() Core::DirIterator di(full_path, m_model.should_show_dotfiles() ? Core::DirIterator::SkipParentAndBaseDir : Core::DirIterator::SkipDots); if (di.has_error()) { m_error = di.error(); - fprintf(stderr, "DirIterator: %s\n", di.error_string()); + warnln("DirIterator: {}", di.error_string()); return; } diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp index f8233f1e2e..aefaa338bd 100644 --- a/Userland/Libraries/LibGUI/TextEditor.cpp +++ b/Userland/Libraries/LibGUI/TextEditor.cpp @@ -1291,7 +1291,7 @@ void TextEditor::cut() if (!is_editable()) return; auto selected_text = this->selected_text(); - printf("Cut: \"%s\"\n", selected_text.characters()); + dbgln("Cut: \"{}\"", selected_text); Clipboard::the().set_plain_text(selected_text); delete_selection(); } @@ -1299,7 +1299,7 @@ void TextEditor::cut() void TextEditor::copy() { auto selected_text = this->selected_text(); - printf("Copy: \"%s\"\n", selected_text.characters()); + dbgln("Copy: \"{}\"\n", selected_text); Clipboard::the().set_plain_text(selected_text); } @@ -1313,7 +1313,7 @@ void TextEditor::paste() if (paste_text.is_empty()) return; - printf("Paste: \"%s\"\n", String::copy(paste_text).characters()); + dbgln("Paste: \"{}\"", String::copy(paste_text)); TemporaryChange change(m_automatic_indentation_enabled, false); insert_at_cursor_or_replace_selection(paste_text); |