tools/source/stream/strmunx.cxx |   16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

New commits:
commit d56b61975330329c5dc1e99cc7750a690d3206ed
Author:     sahil <gautamsahil1...@gmail.com>
AuthorDate: Wed Sep 13 03:43:07 2023 +0530
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Mon Oct 23 15:50:09 2023 +0200

    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 <hoss...@libreoffice.org>

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 << 
").");
                 }
             }
         }

Reply via email to