ArielGlenn has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/338407 )
Change subject: add function to dump parts of bz_info_t structure ...................................................................... add function to dump parts of bz_info_t structure Change-Id: I4987992be4333332f0a1daa7b401cf45e17e0857 --- M xmldumps-backup/mwbzutils/mwbzlib.c 1 file changed, 13 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/dumps/mwbzutils refs/changes/07/338407/1 diff --git a/xmldumps-backup/mwbzutils/mwbzlib.c b/xmldumps-backup/mwbzutils/mwbzlib.c index 16bc409..1a1e5c6 100644 --- a/xmldumps-backup/mwbzutils/mwbzlib.c +++ b/xmldumps-backup/mwbzutils/mwbzlib.c @@ -110,11 +110,24 @@ } } +void dump_bfile_info(bz_info_t *bfile) { + fprintf(stderr, "bfile->bufin_size: %d\n", bfile->bufin_size); + fprintf(stderr, "bfile->buffout_size: %d\n", bfile->bufout_size); + fprintf(stderr, "bfile->initialized: %d\n", bfile->initialized); + fprintf(stderr, "bfile->block_start: %"PRId64"\n", bfile->block_start); + fprintf(stderr, "bfile->something: %d\n", bfile->bits_shifted); + fprintf(stderr, "bfile->position: %"PRId64"\n", bfile->position); + fprintf(stderr, "bfile->bytes_written: %d\n", bfile->bytes_written); + fprintf(stderr, "bfile->eof: %d\n", bfile->eof); + fprintf(stderr, "bfile->file_size: %"PRId64"\n", bfile->file_size); +} + /* return -1 if no match return number of bits rightshifted otherwise */ int check_buffer_for_bz2_block_marker(bz_info_t *bfile) { int result, i; + /* dump_bfile_info(bfile); */ result = bytes_compare(bfile->marker[0],bfile->marker_buffer+1,6,0); if (!result) { return(0); -- To view, visit https://gerrit.wikimedia.org/r/338407 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4987992be4333332f0a1daa7b401cf45e17e0857 Gerrit-PatchSet: 1 Gerrit-Project: operations/dumps/mwbzutils Gerrit-Branch: master Gerrit-Owner: ArielGlenn <ar...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits