Piano: Use new format functions.

This commit is contained in:
asynts 2020-10-06 14:25:02 +02:00 committed by Andreas Kling
commit 377afff33a
Notes: sideshowbarker 2024-07-19 02:00:59 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ int main(int argc, char** argv)
LibThread::Thread audio_thread([&] {
auto audio = Core::File::construct("/dev/audio");
if (!audio->open(Core::IODevice::WriteOnly)) {
dbgprintf("Can't open audio device: %s", audio->error_string());
dbgln("Can't open audio device: {}", audio->error_string());
return 1;
}
@ -102,7 +102,7 @@ int main(int argc, char** argv)
return;
wav_writer.set_file(save_path.value());
if (wav_writer.has_error()) {
GUI::MessageBox::show(window, String::format("Failed to export WAV file: %s", wav_writer.error_string()), "Error", GUI::MessageBox::Type::Error);
GUI::MessageBox::show(window, String::formatted("Failed to export WAV file: {}", wav_writer.error_string()), "Error", GUI::MessageBox::Type::Error);
wav_writer.clear_error();
return;
}