diff --git a/src/dobjtype.cpp b/src/dobjtype.cpp index 1415e15d1e..b27546e33f 100644 --- a/src/dobjtype.cpp +++ b/src/dobjtype.cpp @@ -142,7 +142,7 @@ bool PClass::ReadAllFields(FSerializer &ar, void *addr) const if (strcmp(key, "classtype")) { // this does not represent a DObject - Printf(TEXTCOLOR_RED "trying to read user variables but got a non-object (first key is '%s')", key); + Printf(TEXTCOLOR_RED "trying to read user variables but got a non-object (first key is '%s')\n", key); ar.mErrors++; return false; } diff --git a/src/g_game.cpp b/src/g_game.cpp index 97034ada20..1c5388ac17 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -2591,12 +2591,12 @@ UNSAFE_CCMD (playdemo) { if (netgame) { - Printf("End your current netgame first!"); + Printf("End your current netgame first!\n"); return; } if (demorecording) { - Printf("End your current demo first!"); + Printf("End your current demo first!\n"); return; } if (argv.argc() > 1) diff --git a/src/g_level.cpp b/src/g_level.cpp index 2f631db98a..89e9cd678f 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -241,7 +241,7 @@ UNSAFE_CCMD(recordmap) { if (netgame) { - Printf("You cannot record a new game while in a netgame."); + Printf("You cannot record a new game while in a netgame.\n"); return; } if (argv.argc() > 2) diff --git a/src/gl/compatibility/gl_swshader20.cpp b/src/gl/compatibility/gl_swshader20.cpp index be965bee9e..8f55ca335f 100644 --- a/src/gl/compatibility/gl_swshader20.cpp +++ b/src/gl/compatibility/gl_swshader20.cpp @@ -115,7 +115,7 @@ LegacyShader* LegacyShaderContainer::CreatePixelShader(const FString& vertex, co GLsizei length = 0; buffer[0] = 0; glGetShaderInfoLog(errorShader, 10000, &length, buffer); - Printf("Shader compile failed: %s", buffer); + Printf("Shader compile failed: %s\n", buffer); delete shader; return nullptr; } @@ -129,7 +129,7 @@ LegacyShader* LegacyShaderContainer::CreatePixelShader(const FString& vertex, co GLsizei length = 0; buffer[0] = 0; glGetProgramInfoLog(shader->Program, 10000, &length, buffer); - Printf("Shader link failed: %s", buffer); + Printf("Shader link failed: %s\n", buffer); delete shader; return nullptr; } diff --git a/src/menu/menu.cpp b/src/menu/menu.cpp index f95285c51e..742da203a1 100644 --- a/src/menu/menu.cpp +++ b/src/menu/menu.cpp @@ -1024,7 +1024,7 @@ CCMD (openmenu) { if (argv.argc() < 2) { - Printf("Usage: openmenu \"menu_name\""); + Printf("Usage: openmenu \"menu_name\"\n"); return; } M_StartControlPanel (true); diff --git a/src/p_conversation.cpp b/src/p_conversation.cpp index 7dc8292303..cce572976f 100644 --- a/src/p_conversation.cpp +++ b/src/p_conversation.cpp @@ -227,7 +227,7 @@ bool LoadScriptFile (const char *name, bool include, int type) { if (type == 0) { - Printf(TEXTCOLOR_RED "Could not find dialog file %s", name); + Printf(TEXTCOLOR_RED "Could not find dialog file %s\n", name); } return false; diff --git a/src/p_map.cpp b/src/p_map.cpp index 7a503a62bb..89eae7859c 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -3080,7 +3080,7 @@ void FSlide::SlideTraverse(const DVector2 &start, const DVector2 &end) if (!in->isaline) { // should never happen - Printf("PTR_SlideTraverse: not a line?"); + Printf("PTR_SlideTraverse: not a line?\n"); continue; } @@ -3437,7 +3437,7 @@ bool FSlide::BounceTraverse(const DVector2 &start, const DVector2 &end) if (!in->isaline) { - Printf("PTR_BounceTraverse: not a line?"); + Printf("PTR_BounceTraverse: not a line?\n"); continue; } diff --git a/src/sound/musicformats/music_midistream.cpp b/src/sound/musicformats/music_midistream.cpp index c52f353398..85c4135de5 100644 --- a/src/sound/musicformats/music_midistream.cpp +++ b/src/sound/musicformats/music_midistream.cpp @@ -253,7 +253,7 @@ MIDIDevice *MIDIStreamer::CreateMIDIDevice(EMidiDevice devtype, int samplerate) if (devtype == MDEV_DEFAULT) { - Printf("Failed to play music: Unable to open any MIDI Device."); + Printf("Failed to play music: Unable to open any MIDI Device.\n"); return nullptr; } } @@ -330,7 +330,7 @@ bool MIDIStreamer::DumpWave(const char *filename, int subsong, int samplerate) auto devtype = SelectMIDIDevice(DeviceType); if (devtype == MDEV_MMAPI) { - Printf("MMAPI device is not supported"); + Printf("MMAPI device is not supported\n"); return false; } MIDI = CreateMIDIDevice(devtype, samplerate); diff --git a/src/sound/timidity/timidity.cpp b/src/sound/timidity/timidity.cpp index ecc46c77f5..e657466c03 100644 --- a/src/sound/timidity/timidity.cpp +++ b/src/sound/timidity/timidity.cpp @@ -71,7 +71,7 @@ static bool InitReader(const char *config_file) auto reader = sfmanager.OpenSoundFont(config_file, SF_GUS|SF_SF2); if (reader == nullptr) { - Printf(TEXTCOLOR_RED "%s: Unable to load sound font", config_file); + Printf(TEXTCOLOR_RED "%s: Unable to load sound font\n", config_file); return false; // No sound font could be opened. } gus_sfreader.reset(reader); diff --git a/src/textures/formats/multipatchtexture.cpp b/src/textures/formats/multipatchtexture.cpp index bc8b7cea2c..af15077c6b 100644 --- a/src/textures/formats/multipatchtexture.cpp +++ b/src/textures/formats/multipatchtexture.cpp @@ -740,7 +740,7 @@ void FTextureManager::AddTexturesLump (const void *lumpdata, int lumpsize, int d // Check whether the amount of names reported is correct. if ((signed)numpatches < 0) { - Printf("Corrupt PNAMES lump found (negative amount of entries reported)"); + Printf("Corrupt PNAMES lump found (negative amount of entries reported)\n"); return; } @@ -778,7 +778,7 @@ void FTextureManager::AddTexturesLump (const void *lumpdata, int lumpsize, int d if (maxoff < uint32_t(numtextures+1)*4) { - Printf ("Texture directory is too short"); + Printf ("Texture directory is too short\n"); delete[] patchlookup; return; } @@ -789,7 +789,7 @@ void FTextureManager::AddTexturesLump (const void *lumpdata, int lumpsize, int d offset = LittleLong(directory[i]); if (offset > maxoff) { - Printf ("Bad texture directory"); + Printf ("Bad texture directory\n"); delete[] patchlookup; return; } @@ -825,7 +825,7 @@ void FTextureManager::AddTexturesLump (const void *lumpdata, int lumpsize, int d offset = LittleLong(directory[i]); if (offset > maxoff) { - Printf ("Bad texture directory"); + Printf ("Bad texture directory\n"); delete[] patchlookup; return; } diff --git a/src/win32/i_input.cpp b/src/win32/i_input.cpp index 4234868c70..85bc3abef5 100644 --- a/src/win32/i_input.cpp +++ b/src/win32/i_input.cpp @@ -644,7 +644,7 @@ bool I_InitInput (void *hwnd) hr = di8c(g_hInst, DIRECTINPUT_VERSION, IID_IDirectInput8A, (void **)&g_pdi, NULL); if (FAILED(hr)) { - Printf(TEXTCOLOR_ORANGE "DirectInput8Create failed: %08lx", hr); + Printf(TEXTCOLOR_ORANGE "DirectInput8Create failed: %08lx\n", hr); g_pdi = NULL; // Just to be sure DirectInput8Create didn't change it } }