aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_http.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_http.erl')
-rw-r--r--src/ejabberd_http.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ejabberd_http.erl b/src/ejabberd_http.erl
index c021b6685..5c49e9c19 100644
--- a/src/ejabberd_http.erl
+++ b/src/ejabberd_http.erl
@@ -179,7 +179,7 @@ send_file(State, Fd, Size, FileName) ->
end
catch _:{case_clause, {error, Why}} ->
if Why /= closed ->
- ?WARNING_MSG("Failed to read ~s: ~s",
+ ?WARNING_MSG("Failed to read ~ts: ~ts",
[FileName, file_format_error(Why)]),
exit(normal);
true ->
@@ -530,7 +530,7 @@ analyze_ip_xff({IPLast, Port}, XFF) ->
{ok, IPFirst} = inet_parse:address(
binary_to_list(ClientIP)),
?DEBUG("The IP ~w was replaced with ~w due to "
- "header X-Forwarded-For: ~s",
+ "header X-Forwarded-For: ~ts",
[IPLast, IPFirst, XFF]),
IPFirst;
false -> IPLast
@@ -677,12 +677,12 @@ make_file_output(State, Status, Headers, FileName) ->
none;
{error, Why} ->
Reason = file_format_error(Why),
- ?ERROR_MSG("Failed to open ~s: ~s", [FileName, Reason]),
+ ?ERROR_MSG("Failed to open ~ts: ~ts", [FileName, Reason]),
make_text_output(State, 404, Reason, [], <<>>)
end;
{error, Why} ->
Reason = file_format_error(Why),
- ?ERROR_MSG("Failed to read info of ~s: ~s", [FileName, Reason]),
+ ?ERROR_MSG("Failed to read info of ~ts: ~ts", [FileName, Reason]),
make_text_output(State, 404, Reason, [], <<>>)
end.