diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-15 16:56:06 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-15 16:56:06 +0000 |
commit | 569ab875269f451acd9c4b515f25bdb09f11c74c (patch) | |
tree | d5a1867820bc66c6d7ead15f9d53c9389aafd0b4 /tools | |
parent | 0f8ca5a723561c6d8552ef54f1a12119c57bde1e (diff) |
INTEGRATION: CWS dbgmacros1 (1.4.30.1.20); FILE MERGED
2003/04/10 09:22:04 kso 1.4.30.1.20.1: #108413# - debug macro unification.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/stream/strmunx.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index 60ba6ee4c2b4..aeb302c7a080 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -2,9 +2,9 @@ * * $RCSfile: strmunx.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2003-03-27 17:04:46 $ + * last change: $Author: vg $ $Date: 2003-04-15 17:56:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -125,7 +125,7 @@ InternalStreamLock::InternalStreamLock( ByteString aFileName(m_pStream->GetFileName(), osl_getThreadTextEncoding()); stat( aFileName.GetBuffer(), &m_aStat ); LockList.Insert( this, LIST_APPEND ); -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 fprintf( stderr, "locked %s", aFileName.GetBuffer() ); if( m_nStartPos || m_nEndPos ) fprintf(stderr, " [ %d ... %d ]", m_nStartPos, m_nEndPos ); @@ -136,7 +136,7 @@ InternalStreamLock::InternalStreamLock( InternalStreamLock::~InternalStreamLock() { LockList.Remove( this ); -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 ByteString aFileName(m_pStream->GetFileName(), osl_getThreadTextEncoding()); fprintf( stderr, "unlocked %s", aFileName.GetBuffer() ); if( m_nStartPos || m_nEndPos ) @@ -541,7 +541,7 @@ BOOL SvFileStream::LockRange( ULONG nByteOffset, ULONG nBytes ) if( ! InternalStreamLock::LockFile( nByteOffset, nByteOffset+nBytes, this ) ) { -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 fprintf( stderr, "InternalLock on %s [ %d ... %d ] failed\n", ByteString(aFilename, osl_getThreadTextEncoding()).GetBuffer(), nByteOffset, nByteOffset+nBytes ); #endif |