[erlang-patches] mnesia overloaded message format

Ahmed Omar spawn.think@REDACTED
Tue Oct 9 16:52:18 CEST 2012


git fetch git://github.com/spawnthink/otp.git fix_mnesia_overload_msg_format

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 charachters


https://github.com/spawnthink/otp/compare/erlang:master...spawnthink:fix_mnesia_overload_msg_format.patch
https://github.com/spawnthink/otp/compare/erlang:master...spawnthink:fix_mnesia_overload_msg_format
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20121009/14c3cc7d/attachment.htm>


More information about the erlang-patches mailing list