Print the zlib-provided message in case of error.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30483 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2009-04-29 01:53:58 +00:00
parent ff6382031e
commit e5ea3d8c41
@@ -772,7 +772,7 @@ TarFS::Volume::_Inflate(boot::Partition *partition, void* cookie, off_t offset,
offset += bytesRead;
if (zStream.avail_in != 0 && status != Z_STREAM_END)
dprintf("tarfs: didn't read whole block!\n");
dprintf("tarfs: didn't read whole block: %s\n", zStream.msg);
} while (status == Z_OK);
inflateEnd(&zStream);