mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
consistent formatting for dbg_msg
no capital letters, no spaces
This commit is contained in:
parent
b0803b26e0
commit
23c005144b
|
@ -1143,7 +1143,7 @@ int net_host_lookup(const char *hostname, NETADDR *addr, int types)
|
|||
if(priv_net_extract(hostname, host, sizeof(host), &port))
|
||||
return -1;
|
||||
|
||||
dbg_msg("host lookup", "host='%s' port=%d %d", host, port, types);
|
||||
dbg_msg("host_lookup", "host='%s' port=%d %d", host, port, types);
|
||||
|
||||
mem_zero(&hints, sizeof(hints));
|
||||
|
||||
|
|
|
@ -428,7 +428,7 @@ void CCommandProcessorFragment_OpenGL::SetState(const CCommandBuffer::SState &St
|
|||
}
|
||||
else
|
||||
{
|
||||
dbg_msg("OpenGL", "Error: this call should not happen.");
|
||||
dbg_msg("opengl", "Error: this call should not happen.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3888,7 +3888,7 @@ void CCommandProcessorFragment_SDL::Cmd_Init(const SCommand_Init *pCommand)
|
|||
|
||||
// check what this context can do
|
||||
const GLubyte *pVersionString = glGetString(GL_VERSION);
|
||||
dbg_msg("OpenGL", "Version string: %s", (const char *)pVersionString);
|
||||
dbg_msg("opengl", "Version string: %s", (const char *)pVersionString);
|
||||
// parse version string
|
||||
ParseVersionString(pVersionString, pCommand->m_pCapabilities->m_ContextMajor, pCommand->m_pCapabilities->m_ContextMinor, pCommand->m_pCapabilities->m_ContextPatch);
|
||||
|
||||
|
@ -4139,7 +4139,7 @@ void CCommandProcessor_SDL_OpenGL::RunBuffer(CCommandBuffer *pBuffer)
|
|||
if(m_General.RunCommand(pCommand))
|
||||
continue;
|
||||
|
||||
dbg_msg("graphics", "unknown command %d", pCommand->m_Cmd);
|
||||
dbg_msg("gfx", "unknown command %d", pCommand->m_Cmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ bool CGLSL::LoadShader(CGLSLCompiler *pCompiler, IStorage *pStorage, const char
|
|||
|
||||
glGetShaderInfoLog(shader, maxLength, &maxLength, buff);
|
||||
|
||||
dbg_msg("GLSL", "%s: %s", pFile, buff);
|
||||
dbg_msg("glsl", "%s: %s", pFile, buff);
|
||||
glDeleteShader(shader);
|
||||
return false;
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ void CGLSLCompiler::ParseLine(std::string &Line, const char *pReadLine, int Type
|
|||
}
|
||||
else
|
||||
{
|
||||
dbg_msg("Shader compiler", "Fix shader for older OpenGL versions.");
|
||||
dbg_msg("shadercompiler", "Fix shader for older OpenGL versions.");
|
||||
}
|
||||
}
|
||||
else if(str_comp(aTmpStr, "noperspective") == 0 || str_comp(aTmpStr, "smooth") == 0 || str_comp(aTmpStr, "flat") == 0)
|
||||
|
@ -225,7 +225,7 @@ void CGLSLCompiler::ParseLine(std::string &Line, const char *pReadLine, int Type
|
|||
|
||||
if(!Found)
|
||||
{
|
||||
dbg_msg("Shader compiler", "Fix shader for older OpenGL versions.");
|
||||
dbg_msg("shadercompiler", "Fix shader for older OpenGL versions.");
|
||||
}
|
||||
|
||||
Line.append("varying");
|
||||
|
|
|
@ -51,7 +51,7 @@ void CGLSLProgram::LinkProgram()
|
|||
int iLogLength;
|
||||
glGetProgramInfoLog(m_ProgramID, 1024, &iLogLength, sInfoLog);
|
||||
str_format(sFinalMessage, 1536, "Error! Shader program wasn't linked! The linker returned:\n\n%s", sInfoLog);
|
||||
dbg_msg("GLSL Program", "%s", sFinalMessage);
|
||||
dbg_msg("glslprogram", "%s", sFinalMessage);
|
||||
}
|
||||
|
||||
//detach all shaders attached to this program
|
||||
|
|
|
@ -483,7 +483,7 @@ class CTextRender : public IEngineTextRender
|
|||
|
||||
if(GlyphIndex == 0)
|
||||
{
|
||||
dbg_msg("pFont", "font has no glyph for either %d or replacement char %d", Chr, ReplacementChr);
|
||||
dbg_msg("textrender", "font has no glyph for either %d or replacement char %d", Chr, ReplacementChr);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -491,7 +491,7 @@ class CTextRender : public IEngineTextRender
|
|||
|
||||
if(FT_Load_Glyph(FtFace, GlyphIndex, FT_LOAD_RENDER | FT_LOAD_NO_BITMAP))
|
||||
{
|
||||
dbg_msg("pFont", "error loading glyph %d", Chr);
|
||||
dbg_msg("textrender", "error loading glyph %d", Chr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1822,7 +1822,7 @@ public:
|
|||
|
||||
if(FT_Load_Char(pFont->m_FtFace, NextCharacter, FT_LOAD_RENDER | FT_LOAD_NO_BITMAP))
|
||||
{
|
||||
dbg_msg("pFont", "error loading glyph %d", NextCharacter);
|
||||
dbg_msg("textrender", "error loading glyph %d", NextCharacter);
|
||||
pCurrent = pTmp;
|
||||
continue;
|
||||
}
|
||||
|
@ -1903,7 +1903,7 @@ public:
|
|||
#endif
|
||||
if(FT_Load_Char(pFont->m_FtFace, NextCharacter, FTFlags))
|
||||
{
|
||||
dbg_msg("GetGlyphOffsetX", "error loading glyph %d", NextCharacter);
|
||||
dbg_msg("textrender", "error loading glyph %d in GetGlyphOffsetX", NextCharacter);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1935,7 +1935,7 @@ public:
|
|||
#endif
|
||||
if(FT_Load_Char(pFont->m_FtFace, NextCharacter, FTFlags))
|
||||
{
|
||||
dbg_msg("pFont", "error loading glyph %d", NextCharacter);
|
||||
dbg_msg("textrender", "error loading glyph %d in CalculateTextWidth", NextCharacter);
|
||||
pCurrent = pTmp;
|
||||
continue;
|
||||
}
|
||||
|
@ -1956,7 +1956,7 @@ public:
|
|||
FoundTextContainer = true;
|
||||
if(FoundTextContainer)
|
||||
{
|
||||
dbg_msg("text render", "%s", "Found non empty text container");
|
||||
dbg_msg("textrender", "%s", "Found non empty text container");
|
||||
dbg_assert(false, "text container was not empty");
|
||||
}
|
||||
|
||||
|
|
|
@ -278,7 +278,7 @@ void CVideo::NextAudioFrame(void (*Mix)(short *pFinalOut, unsigned Frames))
|
|||
if(m_NextAudioFrame && m_Recording && m_HasAudio)
|
||||
{
|
||||
m_ProcessingAudioFrame = true;
|
||||
//dbg_msg("video recorder", "video_frame: %lf", (double)(m_Vframe/m_FPS));
|
||||
//dbg_msg("video_recorder", "video_frame: %lf", (double)(m_Vframe/m_FPS));
|
||||
//if((double)(m_Vframe/m_FPS) < m_AudioStream.pEnc->frame_number*m_AudioStream.pEnc->frame_size/m_AudioStream.pEnc->sample_rate)
|
||||
//return;
|
||||
Mix(m_aBuffer, ALEN);
|
||||
|
|
|
@ -2933,7 +2933,7 @@ void CGameClient::LoadMapSettings()
|
|||
int Size = pMap->GetDataSize(pItem->m_Settings);
|
||||
char *pSettings = (char *)pMap->GetData(pItem->m_Settings);
|
||||
char *pNext = pSettings;
|
||||
dbg_msg("New tune ", "%s", pNext);
|
||||
dbg_msg("tune", "%s", pNext);
|
||||
while(pNext < pSettings + Size)
|
||||
{
|
||||
int StrSize = str_length(pNext) + 1;
|
||||
|
|
|
@ -3207,27 +3207,27 @@ void CGameContext::OnInit(/*class IKernel *pKernel*/)
|
|||
if(Index == TILE_OLDLASER)
|
||||
{
|
||||
g_Config.m_SvOldLaser = 1;
|
||||
dbg_msg("game layer", "found old laser tile");
|
||||
dbg_msg("game_layer", "found old laser tile");
|
||||
}
|
||||
else if(Index == TILE_NPC)
|
||||
{
|
||||
m_Tuning.Set("player_collision", 0);
|
||||
dbg_msg("game layer", "found no collision tile");
|
||||
dbg_msg("game_layer", "found no collision tile");
|
||||
}
|
||||
else if(Index == TILE_EHOOK)
|
||||
{
|
||||
g_Config.m_SvEndlessDrag = 1;
|
||||
dbg_msg("game layer", "found unlimited hook time tile");
|
||||
dbg_msg("game_layer", "found unlimited hook time tile");
|
||||
}
|
||||
else if(Index == TILE_NOHIT)
|
||||
{
|
||||
g_Config.m_SvHit = 0;
|
||||
dbg_msg("game layer", "found no weapons hitting others tile");
|
||||
dbg_msg("game_layer", "found no weapons hitting others tile");
|
||||
}
|
||||
else if(Index == TILE_NPH)
|
||||
{
|
||||
m_Tuning.Set("player_hooking", 0);
|
||||
dbg_msg("game layer", "found no player hooking tile");
|
||||
dbg_msg("game_layer", "found no player hooking tile");
|
||||
}
|
||||
|
||||
if(Index >= ENTITY_OFFSET)
|
||||
|
@ -3243,27 +3243,27 @@ void CGameContext::OnInit(/*class IKernel *pKernel*/)
|
|||
if(Index == TILE_OLDLASER)
|
||||
{
|
||||
g_Config.m_SvOldLaser = 1;
|
||||
dbg_msg("front layer", "found old laser tile");
|
||||
dbg_msg("front_layer", "found old laser tile");
|
||||
}
|
||||
else if(Index == TILE_NPC)
|
||||
{
|
||||
m_Tuning.Set("player_collision", 0);
|
||||
dbg_msg("front layer", "found no collision tile");
|
||||
dbg_msg("front_layer", "found no collision tile");
|
||||
}
|
||||
else if(Index == TILE_EHOOK)
|
||||
{
|
||||
g_Config.m_SvEndlessDrag = 1;
|
||||
dbg_msg("front layer", "found unlimited hook time tile");
|
||||
dbg_msg("front_layer", "found unlimited hook time tile");
|
||||
}
|
||||
else if(Index == TILE_NOHIT)
|
||||
{
|
||||
g_Config.m_SvHit = 0;
|
||||
dbg_msg("front layer", "found no weapons hitting others tile");
|
||||
dbg_msg("front_layer", "found no weapons hitting others tile");
|
||||
}
|
||||
else if(Index == TILE_NPH)
|
||||
{
|
||||
m_Tuning.Set("player_hooking", 0);
|
||||
dbg_msg("front layer", "found no player hooking tile");
|
||||
dbg_msg("front_layer", "found no player hooking tile");
|
||||
}
|
||||
if(Index >= ENTITY_OFFSET)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue