You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/03/08 09:55:21 UTC

svn commit: r1454291 - /openoffice/trunk/main/sal/osl/unx/module.c

Author: hdu
Date: Fri Mar  8 08:55:21 2013
New Revision: 1454291

URL: http://svn.apache.org/r1454291
Log:
use the canonical "error:" string in osl's module loading

compilers/linkers/etc. use "error:" and other tools pick that up.
Having OSL errors noticed by the same automatisms is helpful.

Modified:
    openoffice/trunk/main/sal/osl/unx/module.c

Modified: openoffice/trunk/main/sal/osl/unx/module.c
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/osl/unx/module.c?rev=1454291&r1=1454290&r2=1454291&view=diff
==============================================================================
--- openoffice/trunk/main/sal/osl/unx/module.c (original)
+++ openoffice/trunk/main/sal/osl/unx/module.c Fri Mar  8 08:55:21 2013
@@ -83,7 +83,7 @@ oslModule SAL_CALL osl_loadAsciiModule(c
 
 #if OSL_DEBUG_LEVEL > 1
 		if (pLib == 0)
-			OSL_TRACE("Error osl_loadModule: %s\n", dlerror());
+			OSL_TRACE("error: osl_loadModule failed with %s\n", dlerror());
 #endif /* OSL_DEBUG_LEVEL */
 
 		return ((oslModule)(pLib));
@@ -120,7 +120,7 @@ void SAL_CALL osl_unloadModule(oslModule
 #if OSL_DEBUG_LEVEL > 1
         if (nRet != 0)
         {
-			fprintf(stderr, "Error osl_unloadModule: %s\n", dlerror());
+			fprintf(stderr, "error: osl_unloadModule failed with %s\n", dlerror());
         }
 #else
         (void) nRet;
@@ -154,7 +154,7 @@ osl_getAsciiFunctionSymbol(oslModule Mod
         fcnAddr = dlsym(Module, pSymbol);
         
         if (!fcnAddr)
-            OSL_TRACE("Error osl_getAsciiFunctionSymbol: %s\n", dlerror());
+            OSL_TRACE("error: osl_getAsciiFunctionSymbol failed with %s\n", dlerror());
 	}
 #endif
 
@@ -234,3 +234,4 @@ sal_Bool SAL_CALL osl_getModuleURLFromFu
 {
     return osl_getModuleURLFromAddress((void*)addr, ppLibraryUrl); 
 }
+