diff options
author | Rohan Kumar <rohankanojia420@gmail.com> | 2016-03-09 02:16:47 +0530 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2016-03-12 14:35:40 +0000 |
commit | 221144f9c995fe30adf577c02f756b3123fb2550 (patch) | |
tree | ed4f260d8b78016ff972306b8735ad65fbcbffe0 /desktop/source/splash | |
parent | 1151fec7a8c3dfcbc364aa941f477004309b1e59 (diff) |
tdf#91794 OSL_DEBUG_LEVEL > 1 removed (desktop)
[UPDATED PATCH]: I removed the trailing newline characters in the
SAL_WARN macro as pointed by Jan Iverson
Change-Id: If90b0d44777ec2ab1bd646f22f4c9cdf798cf8b4
Reviewed-on: https://gerrit.libreoffice.org/22315
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'desktop/source/splash')
-rw-r--r-- | desktop/source/splash/unxsplash.cxx | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/desktop/source/splash/unxsplash.cxx b/desktop/source/splash/unxsplash.cxx index c396fc5f6b18..4018535f81e2 100644 --- a/desktop/source/splash/unxsplash.cxx +++ b/desktop/source/splash/unxsplash.cxx @@ -36,10 +36,7 @@ namespace desktop UnxSplashScreen::~UnxSplashScreen() { -#if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "UnxSplashScreen::~UnxSplashScreen()\n" ); -#endif - + SAL_WARN("desktop.splash", "UnxSplashScreen::~UnxSplashScreen()"); if ( m_pOutFd ) { fclose( m_pOutFd ); @@ -55,9 +52,7 @@ void SAL_CALL UnxSplashScreen::start( const OUString& /*aText*/, sal_Int32 /*nRa void SAL_CALL UnxSplashScreen::end() throw ( uno::RuntimeException, std::exception ) { -#if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "UnxSplashScreen::end()\n" ); -#endif + SAL_WARN("desktop.splash", "UnxSplashScreen::end()"); if( !m_pOutFd ) return; @@ -68,9 +63,7 @@ void SAL_CALL UnxSplashScreen::end() void SAL_CALL UnxSplashScreen::reset() throw ( uno::RuntimeException, std::exception ) { -#if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "UnxSplashScreen::reset()\n" ); -#endif + SAL_WARN("desktop.splash", "UNXSplashScreen::reset()"); if( !m_pOutFd ) return; @@ -108,11 +101,9 @@ UnxSplashScreen::initialize( const css::uno::Sequence< css::uno::Any>& ) { int fd = aNum.toInt32(); m_pOutFd = fdopen( fd, "w" ); -#if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "Got argument '--splash-pipe=%d ('%s') (%p)\n", - fd, OUStringToOString( aNum, RTL_TEXTENCODING_UTF8 ).getStr(), - m_pOutFd ); -#endif + SAL_WARN("desktop.splash", "Got argument '--splash-pipe=" << fd << " ('" + << aNum << "') (" + << static_cast<void *>(m_pOutFd) << ")"); } } } |