Both libcoap and CTT use the host byte order, so this change helps
correlate their log contents with the IoTivity logs.
Change-Id: If8b91a35017329a1a2a5bbe2770c71122c2f382a
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17455
Reviewed-by: Mike Fenelon <mike.fenelon@microsoft.com>
Tested-by: Mike Fenelon <mike.fenelon@microsoft.com>
if (pdu->transport_hdr)
{
- OIC_LOG_V(DEBUG, ANALYZER_TAG, "Msg ID = [%d]", pdu->transport_hdr->udp.id);
+ OIC_LOG_V(DEBUG, ANALYZER_TAG, "Msg ID = [%u]",
+ (uint32_t)ntohs(pdu->transport_hdr->udp.id));
}
if (info)