This commit is contained in:
Mikhail Voytenko 2010-03-18 14:24:20 +01:00
parent 47e77dffb7
commit dadd371743

View file

@ -91,7 +91,7 @@ InternalStreamLock::InternalStreamLock(
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "locked %s", aFileName.GetBuffer() ); fprintf( stderr, "locked %s", aFileName.GetBuffer() );
if( m_nStartPos || m_nEndPos ) if( m_nStartPos || m_nEndPos )
fprintf(stderr, " [ %d ... %d ]", m_nStartPos, m_nEndPos ); fprintf(stderr, " [ %ld ... %ld ]", m_nStartPos, m_nEndPos );
fprintf( stderr, "\n" ); fprintf( stderr, "\n" );
#endif #endif
} }
@ -103,7 +103,7 @@ InternalStreamLock::~InternalStreamLock()
ByteString aFileName(m_pStream->GetFileName(), osl_getThreadTextEncoding()); ByteString aFileName(m_pStream->GetFileName(), osl_getThreadTextEncoding());
fprintf( stderr, "unlocked %s", aFileName.GetBuffer() ); fprintf( stderr, "unlocked %s", aFileName.GetBuffer() );
if( m_nStartPos || m_nEndPos ) if( m_nStartPos || m_nEndPos )
fprintf(stderr, " [ %d ... %d ]", m_nStartPos, m_nEndPos ); fprintf(stderr, " [ %ld ... %ld ]", m_nStartPos, m_nEndPos );
fprintf( stderr, "\n" ); fprintf( stderr, "\n" );
#endif #endif
} }
@ -514,7 +514,7 @@ sal_Bool SvFileStream::LockRange( sal_Size nByteOffset, sal_Size nBytes )
if( ! InternalStreamLock::LockFile( nByteOffset, nByteOffset+nBytes, this ) ) if( ! InternalStreamLock::LockFile( nByteOffset, nByteOffset+nBytes, this ) )
{ {
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "InternalLock on %s [ %d ... %d ] failed\n", fprintf( stderr, "InternalLock on %s [ %ld ... %ld ] failed\n",
ByteString(aFilename, osl_getThreadTextEncoding()).GetBuffer(), nByteOffset, nByteOffset+nBytes ); ByteString(aFilename, osl_getThreadTextEncoding()).GetBuffer(), nByteOffset, nByteOffset+nBytes );
#endif #endif
return sal_False; return sal_False;