sal/osl/unx/backtrace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 66add63dda22321476653d06a61bc61090fafc58 Author: Damjan Jovanovic <dam...@apache.org> Date: Sun Dec 13 23:35:09 2015 +0000 Use %p to print pointers in sal backtraces.. instead of 0x%x + conversion to integer. Patch by: me (cherry picked from commit 25f185144085ebe06405a5d8f19a11544ed7f794) Change-Id: I49197aed7bc2dc92a4b54d9aa6a7dce95ebadcfb diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c index a8177e6..a03ab7d 100644 --- a/sal/osl/unx/backtrace.c +++ b/sal/osl/unx/backtrace.c @@ -120,7 +120,7 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); } } - fprintf( fp, "[0x%x]\n", *pFramePtr ); + fprintf( fp, "[%p]\n", *pFramePtr ); } fflush( fp ); @@ -187,7 +187,7 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) fprintf( fp, "(%s+0x%" SAL_PRI_PTRDIFFT "x)", dli.dli_sname, offset ); } } - fprintf( fp, "[0x%p]\n", *pFramePtr ); + fprintf( fp, "[%p]\n", *pFramePtr ); } fflush( fp ); fclose( fp ); @@ -257,7 +257,7 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) fprintf( fp, "(%s+0x%tx)", dli.dli_sname, offset ); } } - fprintf( fp, "[0x%x]\n", (unsigned int)*pFramePtr ); + fprintf( fp, "[%p]\n", *pFramePtr ); } fflush( fp ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits