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--;
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 */
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);