diff options
author | pixel <pixel> | 2007-07-09 15:59:00 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-09 15:59:00 +0000 |
commit | 2efe6f62b644ca93b7294de6dc83090542b2e4e2 (patch) | |
tree | 5d89ff0f547fe2d3759a73043cd00c258b849aec | |
parent | 1843b364cb6b364f13d40296f65bcd7b25d3f6e8 (diff) |
Slightly improved verbose output.
-rw-r--r-- | mpq-bios.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -299,6 +299,19 @@ mpq_archive_t * mpqlib_reopen_archive(int fd) { void mpqlib_printtables(mpq_archive_t * mpq_a) { int i; + + printf("Archive details:\n"); + printf("Header size: %8d\n", mpq_a->mpq_i->header_size); + printf("Archive size: %8d\n", mpq_a->mpq_i->archive_size); + printf("Format version: %8d\n", mpq_a->mpq_i->format_version); + printf("Sector size: %8d\n\n", mpq_a->mpq_i->sector_size); + + printf("Hash table offset: %016llX\n", mpq_a->mpq_i->hash_table_offset); + printf("Block table offset: %016llX\n", mpq_a->mpq_i->block_table_offset); + printf("Hash table entries: %8d\n", mpq_a->mpq_i->hash_table_entries); + printf("Block table entries: %8d\n", mpq_a->mpq_i->block_table_entries); + + printf("Extended block table offset: %016llX\n\n\n", mpq_a->mpq_i->extended_block_table_offset); printf("Hash table dump.\n"); printf("HashA HashB language platform index\n"); |