diff options
author | Rohan Kumar <rohankanojia420@gmail.com> | 2016-03-07 19:57:40 +0530 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-03-08 13:29:14 +0000 |
commit | 26b69a9d0f6ae454ccd57019a68ef96be2568ba5 (patch) | |
tree | cd4a11004a8dd5012d564af28a876b3aff280043 /unodevtools | |
parent | 856cf7115d7b52f38371047b4a1aeae747a5d9bc (diff) |
tdf#91794 Remove OSL_DEBUG_LEVEL > 1 conditionals
I removed the fprintf statements and replaced them with
SAL_WARN statements.
Change-Id: Id75e310e3a95b249fdf92a4dd5a9bcf1b7fb9be6
Reviewed-on: https://gerrit.libreoffice.org/22984
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'unodevtools')
-rw-r--r-- | unodevtools/source/unodevtools/options.cxx | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/unodevtools/source/unodevtools/options.cxx b/unodevtools/source/unodevtools/options.cxx index 8e0e870b4040..fbbca04bbeda 100644 --- a/unodevtools/source/unodevtools/options.cxx +++ b/unodevtools/source/unodevtools/options.cxx @@ -27,14 +27,6 @@ namespace unodevtools { -#if OSL_DEBUG_LEVEL > 1 -static void out( const sal_Char * pText ) -{ - fprintf( stderr, pText ); -} -#endif - - bool readOption( OUString * pValue, const sal_Char * pOpt, sal_uInt32 * pnIndex, const OUString & aArg) { @@ -58,25 +50,13 @@ bool readOption( OUString * pValue, const sal_Char * pOpt, throw CannotDumpException( "incomplete option \"-" + aOpt + "\" given!"); } else { -#if OSL_DEBUG_LEVEL > 1 - out( "\n> identified option -" ); - out( pOpt ); - out( " = " ); - OString tmp = OUStringToOString(*pValue, RTL_TEXTENCODING_ASCII_US); - out( tmp.getStr() ); -#endif + SAL_INFO("unodevtools", "> identified option -" << pOpt << " = " << *pValue); ++(*pnIndex); return true; } } else if (aArg.indexOf(aOpt) == 1) { *pValue = aArg.copy(1 + aOpt.getLength()); -#if OSL_DEBUG_LEVEL > 1 - out( "\n> identified option -" ); - out( pOpt ); - out( " = " ); - OString tmp = OUStringToOString(*pValue, RTL_TEXTENCODING_ASCII_US); - out( tmp.getStr() ); -#endif + SAL_INFO("unodevtools", "> identified option -" << pOpt << " = " << *pValue); ++(*pnIndex); return true; @@ -95,10 +75,7 @@ bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt, { ++(*pnIndex); *pbOpt = sal_True; -#if OSL_DEBUG_LEVEL > 1 - out( "\n> identified option --" ); - out( pOpt ); -#endif + SAL_INFO("unodevtools", "> identified option --" << pOpt); return true; } return false; |