diff options
author | Anders Svensson <[email protected]> | 2011-09-23 17:25:08 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-09-26 17:23:58 +0200 |
commit | 2ba082f42a77d901b5306d15f05e1717ad137e00 (patch) | |
tree | dd8d20af23dc24571cd6ce880fee51d67de1016c /lib/diameter/src/app/diameter_service.erl | |
parent | 48a715dec34a61208e82f91b49a3d3670a62d7ce (diff) | |
download | otp-2ba082f42a77d901b5306d15f05e1717ad137e00.tar.gz otp-2ba082f42a77d901b5306d15f05e1717ad137e00.tar.bz2 otp-2ba082f42a77d901b5306d15f05e1717ad137e00.zip |
Use single format for error_logger reports
Diffstat (limited to 'lib/diameter/src/app/diameter_service.erl')
-rw-r--r-- | lib/diameter/src/app/diameter_service.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/diameter/src/app/diameter_service.erl b/lib/diameter/src/app/diameter_service.erl index 63b0649dc4..45e6b90d14 100644 --- a/lib/diameter/src/app/diameter_service.erl +++ b/lib/diameter/src/app/diameter_service.erl @@ -463,7 +463,7 @@ handle_call(stop, _From, S) -> %% stating a monitor that waits for DOWN before returning. handle_call(Req, From, S) -> - ?REPORT(unknown_request, ?FUNC, [Req, From]), + unexpected(handle_call, [Req, From], S), {reply, nok, S}. %%% --------------------------------------------------------------------------- @@ -471,7 +471,7 @@ handle_call(Req, From, S) -> %%% --------------------------------------------------------------------------- handle_cast(Req, S) -> - ?REPORT(unknown_request, ?FUNC, [Req]), + unexpected(handle_cast, [Req], S), {noreply, S}. %%% --------------------------------------------------------------------------- @@ -553,8 +553,8 @@ transition({failover, TRef, Seqs}, S) -> failover(TRef, Seqs, S), ok; -transition(Req, _) -> - ?REPORT(unknown_request, ?FUNC, [Req]), +transition(Req, S) -> + unexpected(handle_info, [Req], S), ok. %%% --------------------------------------------------------------------------- @@ -591,6 +591,9 @@ code_change(FromVsn, SvcName, Extra, #diameter_app{alias = Alias} = A) -> %% =========================================================================== %% =========================================================================== +unexpected(F, A, #state{service_name = Name}) -> + ?UNEXPECTED(F, A ++ [Name]). + cb([_|_] = M, F, A) -> eval(M, F, A); cb(Rec, F, A) -> |