[Libreoffice-commits] core.git: sal/osl
Damjan Jovanovic
damjan at apache.org
Tue Dec 15 05:56:33 PST 2015
sal/osl/unx/backtrace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cfe08df695c046371c4361a434176e6381e3e064
Author: Damjan Jovanovic <damjan at apache.org>
Date: Sun Dec 13 23:55:35 2015 +0000
Use %tx to print ptrdiff_t.
Patch by: me
(cherry picked from commit 7d41b0a9559a388fe558cf7e8d81e4909a785af3)
Change-Id: I5e087de043bf454268e4a3ccf24d9e25de3735ee
diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c
index a03ab7d..c5fbfbf 100644
--- a/sal/osl/unx/backtrace.c
+++ b/sal/osl/unx/backtrace.c
@@ -112,12 +112,12 @@ void backtrace_symbols_fd( void **buffer, int size, int fd )
if ( dli.dli_fname && dli.dli_fbase )
{
offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_fbase;
- fprintf( fp, "%s+0x%x", dli.dli_fname, offset );
+ fprintf( fp, "%s+0x%" SAL_PRI_PTRDIFFT "x", dli.dli_fname, offset );
}
if ( dli.dli_sname && dli.dli_saddr )
{
offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr;
- fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset );
+ fprintf( fp, "(%s+0x%" SAL_PRI_PTRDIFFT "x)", dli.dli_sname, offset );
}
}
fprintf( fp, "[%p]\n", *pFramePtr );
More information about the Libreoffice-commits
mailing list