diff options
author | sahil <gautamsahil1947@gmail.com> | 2023-09-13 03:43:07 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2023-10-23 15:50:09 +0200 |
commit | d56b61975330329c5dc1e99cc7750a690d3206ed (patch) | |
tree | 1d722dd70a9ead3076fb4d4d3f58810b3ec9e43a /tools | |
parent | fcae1c4fdf75d6a62cdbfbca5deb07e78de591f5 (diff) |
tdf#130924 replace '*printf' with 'SAL_*' logging macros in tools
Change-Id: I9721bfd3783fd6c5d41b2d9a0e8468c583ede0c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156864
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/stream/strmunx.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index c19d5b00b4b2..881d7a28c0af 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -321,10 +321,7 @@ bool SvFileStream::LockFile() if( !lockFile( this ) ) { -#if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "InternalLock on %s failed\n", - OUStringToOString(aFilename, osl_getThreadTextEncoding()).getStr() ); -#endif + SAL_WARN("tools.stream", "InternalLock on " << aFilename << "failed"); return false; } @@ -403,14 +400,9 @@ void SvFileStream::Open( const OUString& rFilename, StreamMode nOpenMode ) if (osl::File::remove( aFileURL ) == osl::FileBase::E_None ) { File::copy( aStatus.getLinkTargetURL(), aFileURL ); -#if OSL_DEBUG_LEVEL > 0 - fprintf( stderr, - "Removing link and replacing with file contents (%s) -> (%s).\n", - OUStringToOString( aStatus.getLinkTargetURL(), - RTL_TEXTENCODING_UTF8).getStr(), - OUStringToOString( aFileURL, - RTL_TEXTENCODING_UTF8).getStr() ); -#endif + SAL_INFO("tools.stream", + "Removing link and replacing with file contents (" << + aStatus.getLinkTargetURL() << ") -> (" << aFileURL << ")."); } } } |