[Libreoffice-commits] core.git: sal/osl

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Oct 24 20:00:47 UTC 2018


 sal/osl/unx/module.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 4fc1fe6dbc6dd1e836a7abf37f7860eb17c12b1c
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Oct 23 22:07:04 2018 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Oct 24 22:58:20 2018 +0300

    Tell the actual end result and not an intermediate one in the SAL_INFO()
    
    Change-Id: If896ed5b1a8daa3dc057888b858b6b0d5da18f28

diff --git a/sal/osl/unx/module.cxx b/sal/osl/unx/module.cxx
index 9d3f23a95242..571770248c1c 100644
--- a/sal/osl/unx/module.cxx
+++ b/sal/osl/unx/module.cxx
@@ -309,8 +309,6 @@ sal_Bool SAL_CALL osl_getModuleURLFromAddress(void * addr, rtl_uString ** ppLibr
         osl_getProcessWorkingDir(&workDir);
         if (workDir)
         {
-            SAL_INFO(
-                "sal.osl", "osl_getModuleURLFromAddress: " << path->buffer);
             rtl_string2UString(ppLibraryUrl,
                                path->buffer,
                                path->length,
@@ -321,6 +319,7 @@ sal_Bool SAL_CALL osl_getModuleURLFromAddress(void * addr, rtl_uString ** ppLibr
                 *ppLibraryUrl == nullptr, "sal.osl", "rtl_string2UString failed");
             osl_getFileURLFromSystemPath(*ppLibraryUrl, ppLibraryUrl);
             osl_getAbsoluteFileURL(workDir, *ppLibraryUrl, ppLibraryUrl);
+            SAL_INFO("sal.osl", "osl_getModuleURLFromAddress(" << addr << ") => " << OUString(*ppLibraryUrl));
 
             rtl_uString_release(workDir);
             result = true;


More information about the Libreoffice-commits mailing list