summaryrefslogtreecommitdiff
path: root/sal/test
diff options
context:
space:
mode:
authorRohan Kumar <rohankanojia420@gmail.com>2016-03-02 01:28:58 +0530
committerEike Rathke <erack@redhat.com>2016-03-03 17:00:26 +0000
commitf59136a2ed1e3eb01cc5b62c5a7da07c34cbdfae (patch)
treee34d2b6db403fce36c6d8a57e9c3adf31c935e90 /sal/test
parentf336f63da900d76c2bf6e5690f1c8a7bd15a0aa2 (diff)
tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
Change-Id: If329cf8257684e7bd2936641b8f14ec3e9b9f733 Reviewed-on: https://gerrit.libreoffice.org/22647 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sal/test')
-rw-r--r--sal/test/testbootstrap.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/sal/test/testbootstrap.cxx b/sal/test/testbootstrap.cxx
index 3919bcc22bdf..cef9e87ffaf1 100644
--- a/sal/test/testbootstrap.cxx
+++ b/sal/test/testbootstrap.cxx
@@ -32,16 +32,17 @@ int main( int argc, char *argv[] )
sal_Int32 nCount = rtl_getAppCommandArgCount();
-#if OSL_DEBUG_LEVEL > 1
- fprintf( stdout, "rtl-commandargs (%d) real args:%i ", nCount, argc);
+#if OSL_DEBUG_LEVEL > 0
+ OUStringBuffer debugBuff;
+ debugBuff.append("rtl-commandargs (").append(nCount).append(")real args: ").append(argc);
for( sal_Int32 i = 0 ; i < nCount ; i ++ )
{
OUString data;
rtl_getAppCommandArg( i , &(data.pData) );
OString o = OUStringToOString( data, RTL_TEXTENCODING_ASCII_US );
- fprintf( stdout, " %s", o.getStr() );
+ debugBuff.append(" ").append(o);
}
- fprintf( stdout, "\n" );
+ SAL_INFO("sal.test", debugBuff.toString());
#endif
if( nCount == 0 )
@@ -53,13 +54,7 @@ int main( int argc, char *argv[] )
OUString iniName;
Bootstrap::get(OUString("iniName"), iniName, OUString());
-#if OSL_DEBUG_LEVEL > 1
- if(iniName.getLength())
- {
- OString tmp_iniName = OUStringToOString(iniName, RTL_TEXTENCODING_ASCII_US);
- fprintf(stderr, "using ini: %s\n", tmp_iniName.getStr());
- }
-#endif
+ SAL_INFO_IF(!iniName.isEmpty(), "sal.test", "using ini: " << iniName);
Bootstrap bootstrap(iniName);