ioutil: Add a bit more debug output to iobuf_read/write

This commit is contained in:
nick
2013-06-19 11:17:46 +01:00
parent cd0a1f905f
commit 62bdad2a6e

View File

@@ -303,6 +303,7 @@ ssize_t iobuf_read(int fd, struct iobuf *iobuf, size_t default_size )
if ( io_errno_permanent() ) { if ( io_errno_permanent() ) {
warn( SHOW_ERRNO( "read() failed on fd %i", fd ) ); warn( SHOW_ERRNO( "read() failed on fd %i", fd ) );
} else { } else {
debug( SHOW_ERRNO( "read() returned 0 bytes" ) );
count = 0; count = 0;
} }
} }
@@ -325,6 +326,7 @@ ssize_t iobuf_write( int fd, struct iobuf *iobuf )
if ( io_errno_permanent() ) { if ( io_errno_permanent() ) {
warn( SHOW_ERRNO( "write() failed on fd %i", fd ) ); warn( SHOW_ERRNO( "write() failed on fd %i", fd ) );
} else { } else {
debug( SHOW_ERRNO( "write() returned 0 bytes" ) );
count = 0; count = 0;
} }
} }