From 322fbb21bd5190a262c98e40526b2980591e8ce3 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sun, 25 Oct 2015 11:30:03 +0000 Subject: [PATCH] satips: fix port number display in trace --- src/satip/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/satip/server.c b/src/satip/server.c index 686accbba..2d91e0ac4 100644 --- a/src/satip/server.c +++ b/src/satip/server.c @@ -353,7 +353,7 @@ CONFIGID.UPNP.ORG: 0\r\n" if (tvhtrace_enabled()) { tcp_get_str_from_ip((struct sockaddr *)dst, buf, sizeof(buf)); tvhtrace("satips", "sending discover reply to %s:%d%s%s", - buf, IP_PORT(*dst), deviceid ? " device: " : "", deviceid ?: ""); + buf, ntohs(IP_PORT(*dst)), deviceid ? " device: " : "", deviceid ?: ""); } snprintf(buf, sizeof(buf), MSG, UPNP_MAX_AGE, -- 2.47.3