diff options
author | Anders Svensson <[email protected]> | 2011-09-27 11:49:14 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-09-27 11:49:14 +0200 |
commit | 571bc8c6135cb902e7cf9429f1bfad67284f8f23 (patch) | |
tree | 31b618935858320435884a80cf868b7cf22d5d42 /lib/diameter/src/app/diameter_reg.erl | |
parent | 67e216c86754e7076ffdbb87fec8b48ab0d28e56 (diff) | |
parent | 1c9017d8970713a24a36929063bcc76a28ae54c5 (diff) | |
download | otp-571bc8c6135cb902e7cf9429f1bfad67284f8f23.tar.gz otp-571bc8c6135cb902e7cf9429f1bfad67284f8f23.tar.bz2 otp-571bc8c6135cb902e7cf9429f1bfad67284f8f23.zip |
Merge branch 'dev' into major
Diffstat (limited to 'lib/diameter/src/app/diameter_reg.erl')
-rw-r--r-- | lib/diameter/src/app/diameter_reg.erl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/diameter/src/app/diameter_reg.erl b/lib/diameter/src/app/diameter_reg.erl index 8e5f34c2c3..882b9da238 100644 --- a/lib/diameter/src/app/diameter_reg.erl +++ b/lib/diameter/src/app/diameter_reg.erl @@ -243,7 +243,8 @@ handle_call(state, _, State) -> handle_call(uptime, _, #state{id = Time} = State) -> {reply, diameter_lib:now_diff(Time), State}; -handle_call(_Req, _From, State) -> +handle_call(Req, From, State) -> + ?UNEXPECTED([Req, From]), {reply, nok, State}. %%% ---------------------------------------------------------- @@ -251,7 +252,7 @@ handle_call(_Req, _From, State) -> %%% ---------------------------------------------------------- handle_cast(Msg, State)-> - warning_msg("received unexpected message:~n~w", [Msg]), + ?UNEXPECTED([Msg]), {noreply, State}. %%% ---------------------------------------------------------- @@ -264,7 +265,7 @@ handle_info({'DOWN', MRef, process, Pid, _}, State) -> {noreply, State}; handle_info(Info, State) -> - warning_msg("received unknown info:~n~w", [Info]), + ?UNEXPECTED([Info]), {noreply, State}. %%% ---------------------------------------------------------- @@ -324,8 +325,3 @@ repl([], _, _) -> call(Request) -> gen_server:call(?SERVER, Request, infinity). - -%% warning_msg/2 - -warning_msg(F, A) -> - ?diameter_warning("~p: " ++ F, [?MODULE | A]). |