- tag more functions with gnu format attribute
- fix format string bugs. still some left
This commit is contained in:
parent
c3a713832c
commit
8e82c3d605
17 changed files with 32 additions and 34 deletions
|
@ -415,10 +415,10 @@ The cgame module is making a system call
|
|||
intptr_t CL_CgameSystemCalls( intptr_t *args ) {
|
||||
switch( args[0] ) {
|
||||
case CG_PRINT:
|
||||
Com_Printf( "%s", VMA(1) );
|
||||
Com_Printf( "%s", (const char*)VMA(1) );
|
||||
return 0;
|
||||
case CG_ERROR:
|
||||
Com_Error( ERR_DROP, "%s", VMA(1) );
|
||||
Com_Error( ERR_DROP, "%s", (const char*)VMA(1) );
|
||||
return 0;
|
||||
case CG_MILLISECONDS:
|
||||
return Sys_Milliseconds();
|
||||
|
|
|
@ -105,7 +105,7 @@ static void *GPA(char *str)
|
|||
}
|
||||
else
|
||||
{
|
||||
Com_DPrintf("Loaded symbol %s (0x%08X)\n", str, rv);
|
||||
Com_DPrintf("Loaded symbol %s (0x%p)\n", str, rv);
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
@ -347,7 +347,7 @@ void CL_cURL_PerformDownload(void)
|
|||
|
||||
qcurl_easy_getinfo(msg->easy_handle, CURLINFO_RESPONSE_CODE,
|
||||
&code);
|
||||
Com_Error(ERR_DROP, "Download Error: %s Code: %d URL: %s",
|
||||
Com_Error(ERR_DROP, "Download Error: %s Code: %ld URL: %s",
|
||||
qcurl_easy_strerror(msg->data.result),
|
||||
code, clc.downloadURL);
|
||||
}
|
||||
|
|
|
@ -993,7 +993,7 @@ void CL_Setenv_f( void ) {
|
|||
if ( env ) {
|
||||
Com_Printf( "%s=%s\n", Cmd_Argv(1), env );
|
||||
} else {
|
||||
Com_Printf( "%s undefined\n", Cmd_Argv(1), env );
|
||||
Com_Printf( "%s undefined\n", Cmd_Argv(1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -767,11 +767,11 @@ The ui module is making a system call
|
|||
intptr_t CL_UISystemCalls( intptr_t *args ) {
|
||||
switch( args[0] ) {
|
||||
case UI_ERROR:
|
||||
Com_Error( ERR_DROP, "%s", VMA(1) );
|
||||
Com_Error( ERR_DROP, "%s", (const char*)VMA(1) );
|
||||
return 0;
|
||||
|
||||
case UI_PRINT:
|
||||
Com_Printf( "%s", VMA(1) );
|
||||
Com_Printf( "%s", (const char*)VMA(1) );
|
||||
return 0;
|
||||
|
||||
case UI_MILLISECONDS:
|
||||
|
|
|
@ -896,7 +896,7 @@ static qboolean S_AL_CheckInput(int entityNum, sfxHandle_t sfx)
|
|||
|
||||
if (sfx < 0 || sfx >= numSfx)
|
||||
{
|
||||
Com_Printf(S_COLOR_RED, "ERROR: S_AL_CheckInput: handle %i out of range\n", sfx);
|
||||
Com_Printf(S_COLOR_RED "ERROR: S_AL_CheckInput: handle %i out of range\n", sfx);
|
||||
return qtrue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue