]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satips: fix port number display in trace
authorDamjan Marion <dmarion@proteus.home>
Sun, 25 Oct 2015 11:30:03 +0000 (11:30 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 26 Oct 2015 09:06:22 +0000 (10:06 +0100)
src/satip/server.c

index 686accbbafa47e35e63f1a0d7044759f6d762377..2d91e0ac4f7c28b21a2665ac73ac745f76598d1c 100644 (file)
@@ -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,