anchor.diff:  	]).
   
   -behaviour(ssh_dbg).
  --export([ssh_dbg_trace_points/0, ssh_dbg_flags/1, ssh_dbg_on/1, ssh_dbg_off/1, ssh_dbg_format/2]).
  +-export([ssh_dbg_trace_points/0, ssh_dbg_flags/1,
  +         ssh_dbg_on/1, ssh_dbg_off/1,
  +         ssh_dbg_format/2, ssh_dbg_format/3]).
   
   
   -define(send_disconnect(Code, DetailedText, StateName, State),
  
positive.code:                               dbg:ctpl(?MODULE,   start_rekeying, 2),
                                dbg:ctpg(?MODULE,   renegotiate, 1);
  ssh_dbg_off(connection_events) -> dbg:ctpg(?MODULE, handle_event, 4);
  ssh_dbg_off(connections) -> dbg:ctpg(?MODULE, init_connection_handler, 3),
                              ssh_dbg_off(terminate).
  
  
negative.code: ssh_dbg_format(renegotiation, {return_from, {?MODULE,send_disconnect,7}, _Ret}) ->
      skip.
  
  
  
  ssh_dbg_format(connection_handshake, {call, {?MODULE,handshake,[Pid, Ref, Timeout]}}, Stack) ->
      {["Connection handshake\n",
        io_lib:format("Connection Child: ~p~nReg: ~p~nTimeout: ~p~n",
                     [Pid, Ref, Timeout])
       ],
       [Pid|Stack]
      };
  ssh_dbg_format(connection_handshake, {Tag, {?MODULE,handshake,3}, Ret}, [Pid|Stack]) ->
      {[lists:flatten(io_lib:format("Connection handshake result ~p\n", [Tag])),
        io_lib:format("Connection Child: ~p~nRet: ~p~n",
                      [Pid, Ret])
       ],
       Stack
      }.
  