anchor.diff:      error_logger:format(
         "** State machine ~p terminating~n" ++
   	  case Q of
  -	      [] ->
  -		  "";
  -	      _ ->
  -		  "** Last event = ~p~n"
  +	      [] -> "";
  +	      _ -> "** Last event = ~p~n"
   	  end ++
  -	  "** When Server state  = ~p~n" ++
  +	  "** When server state  = ~p~n" ++
   	  "** Reason for termination = ~w:~p~n" ++
  -	  "** State = ~p~n" ++
   	  "** Callback mode = ~p~n" ++
  -	  "** Queued/Postponed = ~w/~w~n" ++
  +	  case Q of
  +	      [_,_|_] -> "** Queued = ~p~n";
  +	      _ -> ""
  +	  end ++
  +	  case P of
  +	      [] -> "";
  +	      _ -> "** Postponed = ~p~n"
  +	  end ++
   	  case FixedStacktrace of
  -	      [] ->
  -		  "";
  -	      _ ->
  -		  "** Stacktrace =~n"
  -		      "**  ~p~n"
  +	      [] -> "";
  +	      _ -> "** Stacktrace =~n**  ~p~n"
   	  end,
         [Name |
          case Q of
  -	   [] ->
  -	       [];
  -	   [Event|_] ->
  -	       [Event]
  +	   [] -> [];
  +	   [Event|_] -> [Event]
          end] ++
   	  [FmtData,Class,FixedReason,
  -	   State,CallbackMode,length(Q),length(P)] ++
  +	   CallbackMode] ++
  +	  case Q of
  +	      [_|[_|_] = Events] -> [Events];
  +	      _ -> []
  +	  end ++
  +	  case P of
  +	      [] -> [];
  +	      _ -> [P]
  +	  end ++
   	  case FixedStacktrace of
  -	      [] ->
  -		  [];
  -	      _ ->
  -		  [FixedStacktrace]
  +	      [] -> [];
  +	      _ -> [FixedStacktrace]
   	  end),
       sys:print_log(Debug),
       ok.
   
   
   %% Call Module:format_status/2 or return a default value
  -format_status(
  -  Opt, PDict,
  -  #{module := Module, state := State, data := Data}) ->
  +format_status(Opt, PDict, #{module := Module}, State, Data) ->
       case erlang:function_exported(Module, format_status, 2) of
   	true ->
   	    try Module:format_status(Opt, [PDict,State,Data])
  
positive.code: 	C:R ->
  	    ST = erlang:get_stacktrace(),
  	    error_info(
  	      C, R, ST, Debug, S, Q,
  	      format_status(terminate, get(), S)),
  	    erlang:raise(C, R, ST)
      end,
      case Reason of
  
negative.code:       postponed => P,
        hibernate => false,
        timer => undefined},
      NewDebug = sys_debug(Debug, S, State, {enter,Event,State}),
      loop_event_actions(
        Parent, NewDebug, S, Events,
        State, Data, P, Event, State, NewActions).
  