diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-12-21 20:42:07 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-12-21 20:42:16 +0200 |
commit | d358c377718f981d615b5ba2c6c5137dd150d2f0 (patch) | |
tree | e315f56bf8174d820250119a61fd9f7de2a3df53 /sal | |
parent | 928c8c800e2d6c17a768ea8fe2767a2ea68fba20 (diff) |
Print file and not pointer value in SAL_INFO
Change-Id: I96e7ac419f4300a1dd62a5c24611c1467ef3b19a
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/file.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index 28bea88cb034..3efa1a09040b 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -25,6 +25,8 @@ #include "osl/diagnose.h" #include "rtl/alloc.h" +#include <rtl/string.hxx> + #include <sal/log.hxx> #include "system.h" @@ -992,7 +994,7 @@ SAL_CALL osl_openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_u pImpl->m_state |= FileHandle_Impl::STATE_WRITEABLE; pImpl->m_size = sal::static_int_cast< sal_uInt64 >(aFileStat.st_size); - SAL_INFO("sal.file", "osl_openFile(" << pImpl->m_strFilePath << ", " << (flags & O_RDWR ? "writeable":"readonly") << ") => " << pImpl->m_fd); + SAL_INFO("sal.file", "osl_openFile(" << cpFilePath << ", " << (flags & O_RDWR ? "writeable":"readonly") << ") => " << pImpl->m_fd); *pHandle = (oslFileHandle)(pImpl); return osl_File_E_None; @@ -1028,7 +1030,7 @@ SAL_CALL osl_closeFile( oslFileHandle Handle ) if (pImpl == 0) return osl_File_E_INVAL; - SAL_INFO("sal.file", "osl_closeFile(" << pImpl->m_strFilePath << ":" << pImpl->m_fd << ")"); + SAL_INFO("sal.file", "osl_closeFile(" << rtl::OString(pImpl->m_strFilePath) << ":" << pImpl->m_fd << ")"); if (pImpl->m_kind == FileHandle_Impl::KIND_MEM) { |