Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Skydusk
SRB2
Commits
e0819b5a
Commit
e0819b5a
authored
Mar 1, 2024
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
Add printf formating
parent
9d15dfe0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/hardware/r_opengl/r_opengl.c
+2
-2
2 additions, 2 deletions
src/hardware/r_opengl/r_opengl.c
src/netcode/http-mserv.c
+1
-1
1 addition, 1 deletion
src/netcode/http-mserv.c
src/r_translation.c
+2
-2
2 additions, 2 deletions
src/r_translation.c
with
5 additions
and
5 deletions
src/hardware/r_opengl/r_opengl.c
+
2
−
2
View file @
e0819b5a
...
@@ -180,7 +180,7 @@ FUNCPRINTF void GL_DBG_Printf(const char *format, ...)
...
@@ -180,7 +180,7 @@ FUNCPRINTF void GL_DBG_Printf(const char *format, ...)
// GL_MSG_Warning : Raises a warning.
// GL_MSG_Warning : Raises a warning.
// -----------------+
// -----------------+
static
void
GL_MSG_Warning
(
const
char
*
format
,
...)
FUNCPRINTF
static
void
GL_MSG_Warning
(
const
char
*
format
,
...)
{
{
char
str
[
4096
]
=
""
;
char
str
[
4096
]
=
""
;
va_list
arglist
;
va_list
arglist
;
...
@@ -203,7 +203,7 @@ static void GL_MSG_Warning(const char *format, ...)
...
@@ -203,7 +203,7 @@ static void GL_MSG_Warning(const char *format, ...)
// GL_MSG_Error : Raises an error.
// GL_MSG_Error : Raises an error.
// -----------------+
// -----------------+
static
void
GL_MSG_Error
(
const
char
*
format
,
...)
FUNCPRINTF
static
void
GL_MSG_Error
(
const
char
*
format
,
...)
{
{
char
str
[
4096
]
=
""
;
char
str
[
4096
]
=
""
;
va_list
arglist
;
va_list
arglist
;
...
...
This diff is collapsed.
Click to expand it.
src/netcode/http-mserv.c
+
1
−
1
View file @
e0819b5a
...
@@ -134,7 +134,7 @@ HMS_on_read (char *s, size_t _1, size_t n, void *userdata)
...
@@ -134,7 +134,7 @@ HMS_on_read (char *s, size_t _1, size_t n, void *userdata)
return
n
;
return
n
;
}
}
static
struct
HMS_buffer
*
FUNCDEBUG
static
struct
HMS_buffer
*
HMS_connect
(
int
proto
,
const
char
*
format
,
...)
HMS_connect
(
int
proto
,
const
char
*
format
,
...)
{
{
va_list
ap
;
va_list
ap
;
...
...
This diff is collapsed.
Click to expand it.
src/r_translation.c
+
2
−
2
View file @
e0819b5a
...
@@ -556,7 +556,7 @@ static boolean ParseDecimal(tokenizer_t *sc, double *out)
...
@@ -556,7 +556,7 @@ static boolean ParseDecimal(tokenizer_t *sc, double *out)
return
M_StringToDecimal
(
tkn
,
out
);
return
M_StringToDecimal
(
tkn
,
out
);
}
}
static
struct
PaletteRemapParseResult
*
ThrowError
(
const
char
*
format
,
...)
FUNCPRINTF
static
struct
PaletteRemapParseResult
*
ThrowError
(
const
char
*
format
,
...)
{
{
const
size_t
err_size
=
512
*
sizeof
(
char
);
const
size_t
err_size
=
512
*
sizeof
(
char
);
...
@@ -792,7 +792,7 @@ static struct PaletteRemapParseResult *PaletteRemap_ParseTranslation(const char
...
@@ -792,7 +792,7 @@ static struct PaletteRemapParseResult *PaletteRemap_ParseTranslation(const char
return
result
;
return
result
;
}
}
static
void
PrintError
(
const
char
*
name
,
const
char
*
format
,
...)
FUNCDEBUG
static
void
PrintError
(
const
char
*
name
,
const
char
*
format
,
...)
{
{
char
error
[
256
];
char
error
[
256
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment