Use %tx to print a value of type ptrdiff_t.

This commit is contained in:
Tobias Brunner 2011-04-14 17:28:08 +02:00
parent e5e5bcc92f
commit 8e4da8f2e8
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ static void log_(private_backtrace_t *this, FILE *file, bool detailed)
}
if (info.dli_sname)
{
fprintf(file, " \e[33m%s\e[0m @ %p (\e[31m%s\e[0m+0x%x) [%p]\n",
fprintf(file, " \e[33m%s\e[0m @ %p (\e[31m%s\e[0m+0x%tx) [%p]\n",
info.dli_fname, info.dli_fbase, info.dli_sname,
this->frames[i] - info.dli_saddr, this->frames[i]);
}