]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
tvhcsa: fix log offset type
authorJaroslav Kysela <perex@perex.cz>
Thu, 6 Dec 2018 17:20:20 +0000 (18:20 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 6 Dec 2018 17:20:20 +0000 (18:20 +0100)
src/descrambler/tvhcsa.c

index 7c71e08abd92a8dee616998da22b4e4aa7605e8f..4e9680c16a6ebc1944db292d6c56b2f6711ef65b 100644 (file)
@@ -125,8 +125,8 @@ tvhcsa_csa_cbc_descramble
        offset = 4 + pkt[4] + 1;
        if (offset > 188-8){    // invalid offset (residue handling?)
          if (tvhlog_limit(&csa->tvhcsa_loglimit, 10))
-           tvhwarn(LS_CSA, "invalid payload offset in packet for service \"%s\" (offset=%ld pkt[3]=0x%02x pkt[4]=0x%02x)",
-                           ((mpegts_service_t *)s)->s_dvb_svcname, offset, pkt[3], pkt[4]);
+           tvhwarn(LS_CSA, "invalid payload offset in packet for service \"%s\" (offset=%d pkt[3]=0x%02x pkt[4]=0x%02x)",
+                           ((mpegts_service_t *)s)->s_dvb_svcname, (int)offset, pkt[3], pkt[4]);
          break;                        // no more processing
        }
        len = 188 - offset;