chore(coap): use ~0p to print peername

This commit is contained in:
JianBo He 2021-04-30 11:37:16 +08:00 committed by turtleDeng
parent cb31d66bf2
commit 01696ce595
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ call(Pid, Msg, _) ->
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
init({ClientId, Username, Password, Channel}) -> init({ClientId, Username, Password, Channel}) ->
?LOG(debug, "try to start adapter ClientId=~p, Username=~p, Password=~p, Channel=~p", ?LOG(debug, "try to start adapter ClientId=~p, Username=~p, Password=~p, "
[ClientId, Username, Password, Channel]), "Channel=~0p", [ClientId, Username, Password, Channel]),
State0 = #state{peername = Channel, State0 = #state{peername = Channel,
clientid = ClientId, clientid = ClientId,
username = Username, username = Username,