From cee4166d82e4ddbb0f2d87f9873609f6136e3481 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 28 Jan 2025 01:37:04 +0100 Subject: [PATCH] End all log messages with newline character Found by: grep -r -E 'AUDDBG|AUDINFO|AUDWARN|AUDERR' src | grep -v "\\\n" --- src/amidiplug/i_midi.cc | 2 +- src/coreaudio/audiodevice.mm | 6 +++--- src/coreaudio/coreaudio.cc | 2 +- src/flac/metadata.cc | 2 +- src/metronom/metronom.cc | 2 +- src/wavpack/wavpack.cc | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/amidiplug/i_midi.cc b/src/amidiplug/i_midi.cc index f1825771e1..98e018927c 100644 --- a/src/amidiplug/i_midi.cc +++ b/src/amidiplug/i_midi.cc @@ -31,7 +31,7 @@ #define WARNANDBREAK(...) { AUDERR (__VA_ARGS__); break; } -#define ERRMSG_MIDITRACK() { AUDERR ("%s: invalid MIDI data (offset %#x)", \ +#define ERRMSG_MIDITRACK() { AUDERR ("%s: invalid MIDI data (offset %#x)\n", \ (const char *) file_name, file_offset); return false; } diff --git a/src/coreaudio/audiodevice.mm b/src/coreaudio/audiodevice.mm index 4abfb6994c..ae5e745ce0 100644 --- a/src/coreaudio/audiodevice.mm +++ b/src/coreaudio/audiodevice.mm @@ -363,7 +363,7 @@ static OSStatus DefaultListener(AudioObjectID inObjectID, UInt32 inNumberPropert minNominalSR, maxNominalSR, currentNominalSR); } } else { - AUDINFO ("Using audio device %u \"%s\", %u sample rates in %lu range(s); [%g,%g] %s; current sample rate %gHz", + AUDINFO ("Using audio device %u \"%s\", %u sample rates in %lu range(s); [%g,%g] %s; current sample rate %gHz\n", mID, GetName(), nominalSampleRates, propsize / sizeof(AudioValueRange), minNominalSR, maxNominalSR, (discreteSampleRateList) ? "" : "continuous", currentNominalSR); } @@ -440,7 +440,7 @@ static OSStatus DefaultListener(AudioObjectID inObjectID, UInt32 inNumberPropert if (nominalSampleRateList) { delete nominalSampleRateList; } - AUDDBG ("AudioDevice %s (%u) released", mDevName, devId); + AUDDBG ("AudioDevice %s (%u) released\n", mDevName, devId); } } @@ -554,7 +554,7 @@ static OSStatus DefaultListener(AudioObjectID inObjectID, UInt32 inNumberPropert } listenerSilentFor = 3; Float64 sampleRate2 = ClosestNominalSampleRate(sampleRate); - AUDINFO ("SetNominalSampleRate(%g) setting rate to %gHz", sampleRate, sampleRate2); + AUDINFO ("SetNominalSampleRate(%g) setting rate to %gHz\n", sampleRate, sampleRate2); if (sampleRate2 != currentNominalSR || force) { AudioObjectPropertyAddress theAddress = { kAudioDevicePropertyNominalSampleRate, mForInput ? kAudioDevicePropertyScopeInput : kAudioDevicePropertyScopeOutput, diff --git a/src/coreaudio/coreaudio.cc b/src/coreaudio/coreaudio.cc index c7be6331b4..2d4ce3ac60 100644 --- a/src/coreaudio/coreaudio.cc +++ b/src/coreaudio/coreaudio.cc @@ -520,7 +520,7 @@ void CoreAudioPlugin::close_audio () OSStatus err = AudioObjectSetPropertyData (kAudioObjectSystemObject, & prop, 0, nullptr, sizeof hog_mode, & hog_mode); if (err != noErr) - AUDWARN ("Failed to release device from exclusive mode, continuing anyway..."); + AUDWARN ("Failed to release device from exclusive mode, continuing anyway...\n"); is_exclusive = false; } diff --git a/src/flac/metadata.cc b/src/flac/metadata.cc index bed735addd..0f57ad4414 100644 --- a/src/flac/metadata.cc +++ b/src/flac/metadata.cc @@ -377,7 +377,7 @@ bool FLACng::read_tag (const char * filename, VFSFile & file, Tuple & tuple, Ind if (metadata->data.picture.type == FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER) { - AUDDBG("FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER found."); + AUDDBG("FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER found.\n"); image->insert((const char *) metadata->data.picture.data, 0, metadata->data.picture.data_length); } diff --git a/src/metronom/metronom.cc b/src/metronom/metronom.cc index a3274cedb4..336697a127 100644 --- a/src/metronom/metronom.cc +++ b/src/metronom/metronom.cc @@ -167,7 +167,7 @@ bool Metronome::play (const char * filename, VFSFile &) if (!metronom_get_cp(filename, &pmetronom, desc)) { - AUDERR ("Invalid metronom tact parameters in URI %s", filename); + AUDERR ("Invalid metronom tact parameters in URI %s\n", filename); return false; } diff --git a/src/wavpack/wavpack.cc b/src/wavpack/wavpack.cc index 7dde5015f8..28c354fa39 100644 --- a/src/wavpack/wavpack.cc +++ b/src/wavpack/wavpack.cc @@ -131,7 +131,7 @@ bool WavpackPlugin::play (const char * filename, VFSFile & file) if (! wv_attach (filename, file, wvc_input, & ctx, nullptr, OPEN_TAGS | OPEN_WVC)) { - AUDERR ("Error opening Wavpack file '%s'.", filename); + AUDERR ("Error opening Wavpack file '%s'.\n", filename); return false; }