Skip to content

Commit

Permalink
End all log messages with newline character
Browse files Browse the repository at this point in the history
Found by: grep -r -E 'AUDDBG|AUDINFO|AUDWARN|AUDERR' src | grep -v "\\\n"
  • Loading branch information
radioactiveman committed Jan 28, 2025
1 parent 0f726d9 commit cee4166
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/amidiplug/i_midi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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; }


Expand Down
6 changes: 3 additions & 3 deletions src/coreaudio/audiodevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/coreaudio/coreaudio.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/flac/metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/metronom/metronom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/wavpack/wavpack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cee4166

Please sign in to comment.