put back code that got merged out
This commit is contained in:
parent
97a515df6e
commit
5800598666
18
src/zmf.cpp
18
src/zmf.cpp
|
@ -287,6 +287,24 @@ int main( int argc, char *argv[] )
|
||||||
// print some informational messages
|
// print some informational messages
|
||||||
if (bytes_read == 0)
|
if (bytes_read == 0)
|
||||||
{
|
{
|
||||||
|
Debug(4,"Image read : Short read %d bytes of %d expected bytes",n_bytes,frame_header.image_length);
|
||||||
|
}
|
||||||
|
else if (bytes_read+n_bytes == (int)frame_header.image_length)
|
||||||
|
{
|
||||||
|
Debug(5,"Image read : Read rest of short read: %d bytes read total of %d bytes",n_bytes,frame_header.image_length);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug(6,"Image read : continuing, read %d bytes (%d so far)", n_bytes, bytes_read+n_bytes);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bytes_read+= n_bytes;
|
||||||
|
} while (n_bytes>0 && (bytes_read < (ssize_t)frame_header.image_length) );
|
||||||
|
|
||||||
|
// Print errors if there was a problem
|
||||||
|
if ( n_bytes < 1 )
|
||||||
|
{
|
||||||
|
|
||||||
Error( "Only read %d bytes of %d\n", bytes_read, frame_header.image_length);
|
Error( "Only read %d bytes of %d\n", bytes_read, frame_header.image_length);
|
||||||
if ( n_bytes < 0 )
|
if ( n_bytes < 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue