]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
debug: output used non word sized format strings
authorAdam Sutton <dev@adamsutton.me.uk>
Tue, 10 Sep 2013 16:07:15 +0000 (17:07 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 10 Sep 2013 16:07:15 +0000 (17:07 +0100)
src/input/mpegts/dvb_psi.c
src/trap.c

index 44c2a6807ad36c026c8186534b3a84a3f5c5beea..a4e5c6d5fd75890fb6b15be10c3bfc95ff9f3fc1 100644 (file)
@@ -471,7 +471,7 @@ dvb_table_end
       for (sa = 0; sa < 8; sa++)
         rem |= st->sections[sa];
       if (rem) return -1;
-      tvhtrace(mt->mt_name, "  tableid %02X extraid %016lX completed",
+      tvhtrace(mt->mt_name, "  tableid %02X extraid %016" PRIx64 " completed",
                st->tableid, st->extraid);
       st->complete = 1;
       mt->mt_incomplete--;
@@ -503,7 +503,7 @@ dvb_table_begin
   if((ptr[2] & 1) == 0)
     return -1;
 
-  tvhtrace(mt->mt_name, "pid %02X tableid %02X extraid %016lX len %d",
+  tvhtrace(mt->mt_name, "pid %02X tableid %02X extraid %016" PRIx64 " len %d",
            mt->mt_pid, tableid, extraid, len);
 
   /* Section info */
index 7a731d30a85c3255a79a6ecadeb0c92ee4b4d422..6a81ba9c861028311e4ba2895e8a970bcce89e2a 100644 (file)
@@ -173,11 +173,7 @@ traphandler(int sig, siginfo_t *si, void *UC)
   snprintf(tmpbuf, sizeof(tmpbuf), "Register dump [%d]: ", NGREG);
 
   for(i = 0; i < NGREG; i++) {
-#if __WORDSIZE == 64
-    sappend(tmpbuf, sizeof(tmpbuf), "%016llx ", uc->uc_mcontext.gregs[i]);
-#else
-    sappend(tmpbuf, sizeof(tmpbuf), "%08x ", uc->uc_mcontext.gregs[i]);
-#endif
+    sappend(tmpbuf, sizeof(tmpbuf), "%016" PRIx64, uc->uc_mcontext.gregs[i]);
   }
 #endif
   tvhlog_spawn(LOG_ALERT, "CRASH", "%s", tmpbuf);