aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAhmed Omar <[email protected]>2012-10-09 16:46:41 +0200
committerHenrik Nord <[email protected]>2012-10-11 09:19:19 +0200
commit80808af66a63b8a009cabfc19b47f1bf9da6baa5 (patch)
treeeafd5692800438def4d9ce870d8b0ccc217f7b15 /lib
parent0862c07826b3fd5496a9b3bab2bb0b54a8aa7655 (diff)
downloadotp-80808af66a63b8a009cabfc19b47f1bf9da6baa5.tar.gz
otp-80808af66a63b8a009cabfc19b47f1bf9da6baa5.tar.bz2
otp-80808af66a63b8a009cabfc19b47f1bf9da6baa5.zip
Fix format of mnesia overload message
Using ~p in mnesia overload message could lead to wrong messages. mnesia_tm overload message contains a list of two numbers (queue length) example: instead of: Mnesia is overloaded: {mnesia_tm,message_queue_len,[100,105]} it prints : Mnesia is overloaded: {mnesia_tm,message_queue_len,"di"} Replacing ~p with ~w fixes the problem as it doesn't try to detect lists of printable characters
Diffstat (limited to 'lib')
-rw-r--r--lib/mnesia/src/mnesia_event.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_event.erl b/lib/mnesia/src/mnesia_event.erl
index 8085155fd5..9fd0342d31 100644
--- a/lib/mnesia/src/mnesia_event.erl
+++ b/lib/mnesia/src/mnesia_event.erl
@@ -153,7 +153,7 @@ handle_system_event({mnesia_down, Node}, State) ->
end;
handle_system_event({mnesia_overload, Details}, State) ->
- report_warning("Mnesia is overloaded: ~p~n", [Details]),
+ report_warning("Mnesia is overloaded: ~w~n", [Details]),
{ok, State};
handle_system_event({mnesia_info, Format, Args}, State) ->