Browse Source

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

JianBo He 4 years ago
parent
commit
01696ce595
1 changed files with 2 additions and 2 deletions
  1. 2 2
      apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl

+ 2 - 2
apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl

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