From: Michihiro NAKAJIMA Date: Mon, 5 Nov 2012 23:17:03 +0000 (+0900) Subject: Remove debug code for HFS+ compresison. X-Git-Tag: v3.1.0~39^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcc297f6bbafc621c35a7776f63123805af69c75;p=thirdparty%2Flibarchive.git Remove debug code for HFS+ compresison. --- diff --git a/libarchive/archive_write_disk_posix.c b/libarchive/archive_write_disk_posix.c index 3b0f5a5ae..f1ee448af 100644 --- a/libarchive/archive_write_disk_posix.c +++ b/libarchive/archive_write_disk_posix.c @@ -1165,9 +1165,6 @@ hfs_drive_compressor(struct archive_write_disk *a, const char *buff, if (a->decmpfs_block_count == 1 && (a->decmpfs_attr_size + bytes_compressed) <= MAX_DECMPFS_XATTR_SIZE) { -#if DECMPFS_DEBUG -fprintf(stderr, "block %u bytes --> %u bytes in decmpfs xattr\n", (unsigned)size, (unsigned)bytes_compressed); -#endif archive_le32enc(&a->decmpfs_header_p[DECMPFS_COMPRESSION_TYPE], CMP_XATTR); memcpy(a->decmpfs_header_p + DECMPFS_HEADER_SIZE, @@ -1191,9 +1188,6 @@ fprintf(stderr, "block %u bytes --> %u bytes in decmpfs xattr\n", (unsigned)size archive_le32enc(a->decmpfs_block_info++, bytes_compressed); a->compressed_rsrc_position_v += bytes_compressed; -#if DECMPFS_DEBUG -fprintf(stderr, "block %u bytes --> %u bytes in resource fork\n", (unsigned)size, (unsigned)bytes_compressed); -#endif /* * Write the compressed data to the resource fork. */ @@ -1290,9 +1284,6 @@ hfs_write_decmpfs_block(struct archive_write_disk *a, const char *buff, block_count = (a->filesize + MAX_DECMPFS_BLOCK_SIZE -1) / MAX_DECMPFS_BLOCK_SIZE; -#if DECMPFS_DEBUG -fprintf(stderr, "\nblock count = %u, file size = %u\n", block_count, (unsigned)a->filesize); -#endif /* * Allocate buffer for resource fork. * Set up related pointers;