debug: output used non word sized format strings
This commit is contained in:
parent
73b35edae7
commit
46eecb85f1
2 changed files with 3 additions and 7 deletions
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue