diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-15 16:21:31 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-15 16:21:31 +0000 |
commit | 98572f8ba7e83ed94f8714e2f5ac0f7a47e5f3a9 (patch) | |
tree | edb7d2439469987cf0f3c74ce91ff5313cfd1df7 | |
parent | 7ead67f186f0cb87884598ff205662e7c5dcc741 (diff) |
INTEGRATION: CWS dbgmacros1 (1.9.48); FILE MERGED
2003/04/09 12:04:04 kso 1.9.48.1: #108413# - debug macro unification.
-rw-r--r-- | padmin/source/fontentry.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/padmin/source/fontentry.cxx b/padmin/source/fontentry.cxx index 4b2770aa29ee..5406ac69dd71 100644 --- a/padmin/source/fontentry.cxx +++ b/padmin/source/fontentry.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fontentry.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: pl $ $Date: 2001-09-04 16:24:50 $ + * last change: $Author: vg $ $Date: 2003-04-15 17:21:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -148,7 +148,7 @@ static void CreateAfmFile( const INetURLObject& rFontFile ) int nDescr = open( ByteString( aAfmFile.PathToFileName(), aEncoding ).GetBuffer(), O_CREAT | O_TRUNC| O_WRONLY, 00755 ); -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 if( nDescr < 0 ) fprintf( stderr, "open( %s ) failed because of %d\n", ByteString( aAfmFile.GetFull(), aEncoding ).GetBuffer(), errno ); #endif @@ -161,7 +161,7 @@ static void CreateAfmFile( const INetURLObject& rFontFile ) aFullName.GetBuffer(), NULL ); } -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 else fprintf( stderr, "dup2( %d, %d ) failed because of %d\n", nDescr, STDOUT_FILENO, errno ); #endif @@ -176,7 +176,7 @@ static void CreateAfmFile( const INetURLObject& rFontFile ) ByteString aSysFile( aAfmFile.PathToFileName(), aEncoding ); if( stat( aSysFile.GetBuffer(), &aStat ) || ! aStat.st_size ) unlink( aSysFile.GetBuffer() ); -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 fprintf( stderr, " %s\n", ! access( aSysFile.GetBuffer(), F_OK ) ? "success" : "failed" ); #endif unlink( ByteString( aFontMap.PathToFileName(), aEncoding ).GetBuffer() ); |