Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
2bb49dee
Commit
2bb49dee
authored
Oct 17, 2018
by
Marvin Scholz
Committed by
Philipp Schafft
Oct 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Add missing log message arguments
Found with lgtm.com
parent
859fae25
Pipeline
#390
failed with stage
in 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
src/client.c
src/client.c
+8
-8
src/event_exec.c
src/event_exec.c
+1
-1
No files found.
src/client.c
View file @
2bb49dee
...
...
@@ -859,10 +859,10 @@ client_slurp_result_t client_body_skip(client_t *client)
char
buf
[
2048
];
int
ret
;
ICECAST_LOG_DEBUG
(
"Slurping client %p"
);
ICECAST_LOG_DEBUG
(
"Slurping client %p"
,
client
);
if
(
!
client
)
{
ICECAST_LOG_DEBUG
(
"Slurping client %p ... failed"
);
ICECAST_LOG_DEBUG
(
"Slurping client %p ... failed"
,
client
);
return
CLIENT_SLURP_ERROR
;
}
...
...
@@ -870,7 +870,7 @@ client_slurp_result_t client_body_skip(client_t *client)
size_t
left
=
(
size_t
)
client
->
request_body_length
-
client
->
request_body_read
;
if
(
!
left
)
{
ICECAST_LOG_DEBUG
(
"Slurping client %p ... was a success"
);
ICECAST_LOG_DEBUG
(
"Slurping client %p ... was a success"
,
client
);
return
CLIENT_SLURP_SUCCESS
;
}
...
...
@@ -880,10 +880,10 @@ client_slurp_result_t client_body_skip(client_t *client)
client_body_read
(
client
,
buf
,
left
);
if
((
size_t
)
client
->
request_body_length
==
client
->
request_body_read
)
{
ICECAST_LOG_DEBUG
(
"Slurping client %p ... was a success"
);
ICECAST_LOG_DEBUG
(
"Slurping client %p ... was a success"
,
client
);
return
CLIENT_SLURP_SUCCESS
;
}
else
{
ICECAST_LOG_DEBUG
(
"Slurping client %p ... needs more data"
);
ICECAST_LOG_DEBUG
(
"Slurping client %p ... needs more data"
,
client
);
return
CLIENT_SLURP_NEEDS_MORE_DATA
;
}
}
else
{
...
...
@@ -893,15 +893,15 @@ client_slurp_result_t client_body_skip(client_t *client)
ret
=
client_body_eof
(
client
);
switch
(
ret
)
{
case
0
:
ICECAST_LOG_DEBUG
(
"Slurping client %p ... needs more data"
);
ICECAST_LOG_DEBUG
(
"Slurping client %p ... needs more data"
,
client
);
return
CLIENT_SLURP_NEEDS_MORE_DATA
;
break
;
case
1
:
ICECAST_LOG_DEBUG
(
"Slurping client %p ... was a success"
);
ICECAST_LOG_DEBUG
(
"Slurping client %p ... was a success"
,
client
);
return
CLIENT_SLURP_SUCCESS
;
break
;
default:
ICECAST_LOG_DEBUG
(
"Slurping client %p ... failed"
);
ICECAST_LOG_DEBUG
(
"Slurping client %p ... failed"
,
client
);
return
CLIENT_SLURP_ERROR
;
break
;
}
...
...
src/event_exec.c
View file @
2bb49dee
...
...
@@ -73,7 +73,7 @@ static inline event_exec_argvtype_t __str2argvtype(const char *str) {
}
else
if
(
strcmp
(
str
,
"legacy"
)
==
0
)
{
return
ARGVTYPE_LEGACY
;
}
else
{
ICECAST_LOG_ERROR
(
"Unknown argument type %s, using
\"
default
\"
"
);
ICECAST_LOG_ERROR
(
"Unknown argument type %s, using
\"
default
\"
"
,
str
);
return
ARGVTYPE_DFAULT
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment