summaryrefslogtreecommitdiff
path: root/src/music/extmidi.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-12 09:10:17 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 12:45:45 +0200
commit55a11710a6c0f7942f3947711f2050c34782c39d (patch)
tree491b3009324e623236977614e91371a0ea4abac7 /src/music/extmidi.cpp
parenta99ac62c1ab816ee48cac85fdf834f9fdc599cb1 (diff)
downloadopenttd-55a11710a6c0f7942f3947711f2050c34782c39d.tar.xz
Codechange: convert printf DEBUG statements to fmt Debug statements
Diffstat (limited to 'src/music/extmidi.cpp')
-rw-r--r--src/music/extmidi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/music/extmidi.cpp b/src/music/extmidi.cpp
index f88245250..cf19f17cf 100644
--- a/src/music/extmidi.cpp
+++ b/src/music/extmidi.cpp
@@ -110,7 +110,7 @@ bool MusicDriver_ExtMidi::IsSongPlaying()
void MusicDriver_ExtMidi::SetVolume(byte vol)
{
- DEBUG(driver, 1, "extmidi: set volume not implemented");
+ Debug(driver, 1, "extmidi: set volume not implemented");
}
void MusicDriver_ExtMidi::DoPlay()
@@ -127,7 +127,7 @@ void MusicDriver_ExtMidi::DoPlay()
}
case -1:
- DEBUG(driver, 0, "extmidi: couldn't fork: %s", strerror(errno));
+ Debug(driver, 0, "extmidi: couldn't fork: {}", strerror(errno));
FALLTHROUGH;
default:
@@ -153,7 +153,7 @@ void MusicDriver_ExtMidi::DoStop()
CSleep(10);
}
- DEBUG(driver, 0, "extmidi: gracefully stopping failed, trying the hard way");
+ Debug(driver, 0, "extmidi: gracefully stopping failed, trying the hard way");
/* Gracefully stopping failed. Do it the hard way
* and wait till the process finally died. */
kill(this->pid, SIGKILL);