diff options
author | Pablo Polvorin <pablo.polvorin@process-one.net> | 2010-04-09 14:25:00 -0300 |
---|---|---|
committer | Pablo Polvorin <pablo.polvorin@process-one.net> | 2010-04-09 14:25:00 -0300 |
commit | 84c4d7573523652c05a66c8ac8559fa772b5b32d (patch) | |
tree | 8f6dd99e651856cb44e9a7fb4c4e31022665d8dd /src/odbc | |
parent | Allow customizing the StateData in p1_fsm before error reporting. (diff) |
Remove warning for undefined print_state/1 function for p1_fsm processes (thanks Badlop).
Include a identity function as implementation of print_state/1.
Diffstat (limited to 'src/odbc')
-rw-r--r-- | src/odbc/ejabberd_odbc.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/odbc/ejabberd_odbc.erl b/src/odbc/ejabberd_odbc.erl index 64de686cb..da18e0e1c 100644 --- a/src/odbc/ejabberd_odbc.erl +++ b/src/odbc/ejabberd_odbc.erl @@ -47,6 +47,7 @@ handle_sync_event/4, handle_info/3, terminate/3, + print_state/1, code_change/4]). %% gen_fsm states @@ -285,6 +286,13 @@ terminate(_Reason, _StateName, State) -> end, ok. +%%---------------------------------------------------------------------- +%% Func: print_state/1 +%% Purpose: Prepare the state to be printed on error log +%% Returns: State to print +%%---------------------------------------------------------------------- +print_state(State) -> + State. %%%---------------------------------------------------------------------- %%% Internal functions %%%---------------------------------------------------------------------- |