forked from 0ad/0ad
Fixes missing newlines in debug_printf, patch by elexis, fixes #3056
This was SVN commit r16534.
This commit is contained in:
parent
d139a75de3
commit
b6bcfdbb2e
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2009 Wildfire Games.
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -52,7 +52,7 @@ CCinemaPath::CCinemaPath(const CCinemaData& data, const TNSpline& spline)
|
||||
DistModePtr = &CCinemaPath::EaseOutIn;
|
||||
break;
|
||||
default:
|
||||
debug_printf("Cinematic mode not found for %d ", data.m_Mode);
|
||||
debug_printf("Cinematic mode not found for %d\n", data.m_Mode);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@ CCinemaPath::CCinemaPath(const CCinemaData& data, const TNSpline& spline)
|
||||
DistStylePtr = &CCinemaPath::EaseSine;
|
||||
break;
|
||||
default:
|
||||
debug_printf("Cinematic mode not found for %d !", data.m_Style);
|
||||
debug_printf("Cinematic mode not found for %d\n", data.m_Style);
|
||||
break;
|
||||
}
|
||||
//UpdateDuration();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2010 Wildfire Games
|
||||
/* Copyright (c) 2015 Wildfire Games
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
@ -153,7 +153,7 @@ Status CreateDirectories(const OsPath& path, mode_t mode)
|
||||
errno = 0;
|
||||
if(wmkdir(path, mode) != 0)
|
||||
{
|
||||
debug_printf("CreateDirectories: failed to mkdir %s (mode %d)", path.string8().c_str(), mode);
|
||||
debug_printf("CreateDirectories: failed to mkdir %s (mode %d)\n", path.string8().c_str(), mode);
|
||||
WARN_RETURN(StatusFromErrno());
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ void CReplayPlayer::Replay(bool serializationtest, bool ooslog)
|
||||
else if (type == "turn")
|
||||
{
|
||||
*m_Stream >> turn >> turnLength;
|
||||
debug_printf("Turn %u (%u)... ", turn, turnLength);
|
||||
debug_printf("Turn %u (%u)...\n", turn, turnLength);
|
||||
}
|
||||
else if (type == "cmd")
|
||||
{
|
||||
@ -210,9 +210,9 @@ void CReplayPlayer::Replay(bool serializationtest, bool ooslog)
|
||||
ENSURE(ok);
|
||||
std::string hexHash = Hexify(hash);
|
||||
if (hexHash == replayHash)
|
||||
debug_printf("hash ok (%s)", hexHash.c_str());
|
||||
debug_printf("hash ok (%s)\n", hexHash.c_str());
|
||||
else
|
||||
debug_printf("HASH MISMATCH (%s != %s)", hexHash.c_str(), replayHash.c_str());
|
||||
debug_printf("HASH MISMATCH (%s != %s)\n", hexHash.c_str(), replayHash.c_str());
|
||||
}
|
||||
}
|
||||
else if (type == "end")
|
||||
@ -230,9 +230,7 @@ void CReplayPlayer::Replay(bool serializationtest, bool ooslog)
|
||||
// std::string hash;
|
||||
// bool ok = game.GetSimulation2()->ComputeStateHash(hash, true);
|
||||
// ENSURE(ok);
|
||||
// debug_printf("%s", Hexify(hash).c_str());
|
||||
|
||||
debug_printf("\n");
|
||||
// debug_printf("%s\n", Hexify(hash).c_str());
|
||||
|
||||
g_Profiler.Frame();
|
||||
|
||||
|
@ -286,7 +286,7 @@ u8* CVertexBuffer::Bind()
|
||||
|
||||
// Unmap might fail on e.g. resolution switches, so just try again
|
||||
// and hope it will eventually succeed
|
||||
debug_printf("glUnmapBuffer failed, trying again...");
|
||||
debug_printf("glUnmapBuffer failed, trying again...\n");
|
||||
}
|
||||
|
||||
// Anything we just uploaded is clean; anything else is dirty
|
||||
|
Loading…
Reference in New Issue
Block a user