aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia_event.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-07-06 16:20:46 +0200
committerSiri Hansen <[email protected]>2017-09-05 11:02:27 +0200
commit5c5bd9e0fa4d01382da91ed146b651aa9b212d4a (patch)
tree2456a07b4b090b21485c3566ad9de7ff7231d904 /lib/mnesia/src/mnesia_event.erl
parent6086776a4b8c953702cac7bcc2763cd1ad259e88 (diff)
downloadotp-5c5bd9e0fa4d01382da91ed146b651aa9b212d4a.tar.gz
otp-5c5bd9e0fa4d01382da91ed146b651aa9b212d4a.tar.bz2
otp-5c5bd9e0fa4d01382da91ed146b651aa9b212d4a.zip
mnesia: Improve handling of Unicode
Diffstat (limited to 'lib/mnesia/src/mnesia_event.erl')
-rw-r--r--lib/mnesia/src/mnesia_event.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mnesia/src/mnesia_event.erl b/lib/mnesia/src/mnesia_event.erl
index b06043bc61..49b3990086 100644
--- a/lib/mnesia/src/mnesia_event.erl
+++ b/lib/mnesia/src/mnesia_event.erl
@@ -103,11 +103,11 @@ handle_any_event({mnesia_system_event, Event}, State) ->
handle_any_event({mnesia_table_event, Event}, State) ->
handle_table_event(Event, State);
handle_any_event(Msg, State) ->
- report_error("~p got unexpected event: ~p~n", [?MODULE, Msg]),
+ report_error("~p got unexpected event: ~tp~n", [?MODULE, Msg]),
{ok, State}.
handle_table_event({Oper, Record, TransId}, State) ->
- report_info("~p performed by ~p on record:~n\t~p~n",
+ report_info("~p performed by ~p on record:~n\t~tp~n",
[Oper, TransId, Record]),
{ok, State}.
@@ -155,7 +155,7 @@ handle_system_event({mnesia_down, Node}, State) ->
end;
handle_system_event({mnesia_overload, Details}, State) ->
- report_warning("Mnesia is overloaded: ~w~n", [Details]),
+ report_warning("Mnesia is overloaded: ~tw~n", [Details]),
{ok, State};
handle_system_event({mnesia_info, Format, Args}, State) ->
@@ -175,16 +175,16 @@ handle_system_event({mnesia_fatal, Format, Args, BinaryCore}, State) ->
{ok, State#state{dumped_core = true}};
handle_system_event({inconsistent_database, Reason, Node}, State) ->
- report_error("mnesia_event got {inconsistent_database, ~w, ~w}~n",
+ report_error("mnesia_event got {inconsistent_database, ~tw, ~w}~n",
[Reason, Node]),
{ok, State};
handle_system_event({mnesia_user, Event}, State) ->
- report_info("User event: ~p~n", [Event]),
+ report_info("User event: ~tp~n", [Event]),
{ok, State};
handle_system_event(Msg, State) ->
- report_error("mnesia_event got unexpected system event: ~p~n", [Msg]),
+ report_error("mnesia_event got unexpected system event: ~tp~n", [Msg]),
{ok, State}.
report_info(Format0, Args0) ->