summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Wilniewczyc <awilniewczyc@power.com.pl>2013-07-11 12:47:46 +0200
committerIngela Anderton Andin <ingela@erlang.org>2014-02-05 10:32:28 +0100
commit2e308dab294943f3f752b315ad5d5ce52ae4bf52 (patch)
tree69dabb48ff4da23ba7f221fb214bca85a2d42d0b
parentad4ff4a083c84c99c054f7948368e7d15f64b701 (diff)
downloaderlang-2e308dab294943f3f752b315ad5d5ce52ae4bf52.tar.gz
Add missing brackets to report formatting on ftp_progress process exit
When progress reporting process exits, ftp client crashes because of missing brackets in io_lib:format argument.
-rw-r--r--lib/inets/src/ftp/ftp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/ftp/ftp.erl b/lib/inets/src/ftp/ftp.erl
index 6197838d92..6b891522fe 100644
--- a/lib/inets/src/ftp/ftp.erl
+++ b/lib/inets/src/ftp/ftp.erl
@@ -1463,7 +1463,7 @@ handle_info({'DOWN', _Ref, _Type, Process, Reason}, State) ->
handle_info({'EXIT', Pid, Reason}, #state{progress = Pid} = State) ->
Report = io_lib:format("Progress reporting stopped for reason ~p~n",
- Reason),
+ [Reason]),
error_logger:info_report(Report),
{noreply, State#state{progress = ignore}};