summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-09-16 03:27:40 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-09-16 03:41:49 +0200
commitc86b8f17bf95e89fa6bdb3201d3dcde5e81ea5eb (patch)
tree410f8c6197e0637d67b2b2a7ea4963ca6a39ee52 /src/tools
parent9a892fcab05603cbb716191361bc98df0a00d890 (diff)
downloadtqt3-c86b8f17bf95e89fa6bdb3201d3dcde5e81ea5eb.tar.gz
tqt3-c86b8f17bf95e89fa6bdb3201d3dcde5e81ea5eb.zip
Enhance warning verbosity in TQFile (unix)
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qfile_unix.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/qfile_unix.cpp b/src/tools/qfile_unix.cpp
index 9aa4b1f60..e54ee6b97 100644
--- a/src/tools/qfile_unix.cpp
+++ b/src/tools/qfile_unix.cpp
@@ -168,7 +168,7 @@ bool TQFile::open( int m )
{
if ( isOpen() ) { // file already open
#if defined(QT_CHECK_STATE)
- tqWarning( "TQFile::open: File already open" );
+ tqWarning( "TQFile::open: File (%s) already open", fn.latin1() );
#endif
return FALSE;
}
@@ -182,7 +182,7 @@ bool TQFile::open( int m )
setMode( m );
if ( !(isReadable() || isWritable()) ) {
#if defined(QT_CHECK_RANGE)
- tqWarning( "TQFile::open: File access not specified" );
+ tqWarning( "TQFile::open: File access (%s) not specified", fn.latin1() );
#endif
return FALSE;
}
@@ -340,7 +340,7 @@ bool TQFile::open( int m, FILE *f )
{
if ( isOpen() ) {
#if defined(QT_CHECK_RANGE)
- tqWarning( "TQFile::open: File already open" );
+ tqWarning( "TQFile::open: File (%s) already open", fn.latin1() );
#endif
return FALSE;
}
@@ -412,7 +412,7 @@ bool TQFile::open( int m, int f )
{
if ( isOpen() ) {
#if defined(QT_CHECK_RANGE)
- tqWarning( "TQFile::open: File already open" );
+ tqWarning( "TQFile::open: File (%s) already open", fn.latin1() );
#endif
return FALSE;
}
@@ -508,7 +508,7 @@ bool TQFile::at( Offset pos )
{
if ( !isOpen() ) {
#if defined(QT_CHECK_STATE)
- tqWarning( "TQFile::at: File is not open" );
+ tqWarning( "TQFile::at: File (%s) is not open", fn.latin1() );
#endif
return FALSE;
}
@@ -564,11 +564,11 @@ TQ_LONG TQFile::readBlock( char *p, TQ_ULONG len )
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- tqWarning( "TQFile::readBlock: File not open" );
+ tqWarning( "TQFile::readBlock: File (%s) not open", fn.latin1() );
return -1;
}
if ( !isReadable() ) {
- tqWarning( "TQFile::readBlock: Read operation not permitted" );
+ tqWarning( "TQFile::readBlock: Read operation not permitted in file %s ", fn.latin1() );
return -1;
}
#endif
@@ -633,11 +633,11 @@ TQ_LONG TQFile::writeBlock( const char *p, TQ_ULONG len )
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // file not open
- tqWarning( "TQFile::writeBlock: File not open" );
+ tqWarning( "TQFile::writeBlock: File (%s) not open", fn.latin1() );
return -1;
}
if ( !isWritable() ) { // writing not permitted
- tqWarning( "TQFile::writeBlock: Write operation not permitted" );
+ tqWarning( "TQFile::writeBlock: Write operation not permitted in file %s ", fn.latin1() );
return -1;
}
#endif