Mercurial > hg > dmlib
comparison tools/packed.c @ 2384:36edd316184a
Fix some format strings to use proper PRI*_SIZE_T where necessary.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2020 15:20:23 +0200 |
parents | 9360a693d8af |
children | d1992206765a |
comparison
equal
deleted
inserted
replaced
2383:43e39d9ec42f | 2384:36edd316184a |
---|---|
234 { | 234 { |
235 hdr.dirEntries++; | 235 hdr.dirEntries++; |
236 hdr.dirOffset += node->length; | 236 hdr.dirOffset += node->length; |
237 } | 237 } |
238 | 238 |
239 dmMsg(1, "%d entries in PACK, dir at offset 0x%08x.\n", | 239 dmMsg(1, "%d entries in PACK, dir at offset 0x%08" DM_PRIx_SIZE_T ".\n", |
240 hdr.dirEntries, hdr.dirOffset); | 240 hdr.dirEntries, hdr.dirOffset); |
241 | 241 |
242 // Write PACK header | 242 // Write PACK header |
243 if (fseeko(pack->file, 0, SEEK_SET) != 0) | 243 if (fseeko(pack->file, 0, SEEK_SET) != 0) |
244 return DMERR_FSEEK; | 244 return DMERR_FSEEK; |
754 // No filenames specified, everything shown | 754 // No filenames specified, everything shown |
755 match = TRUE; | 755 match = TRUE; |
756 | 756 |
757 if (match) | 757 if (match) |
758 { | 758 { |
759 dmPrint(0, "%-32s | %8d | %8d | %08x | %04x\n", | 759 dmPrint(0, "%-32s | %8d | %8d | %08" DM_PRIx_SIZE_T " | %04x\n", |
760 node->filename, node->size, node->length, | 760 node->filename, node->size, node->length, |
761 node->offset, node->flags); | 761 node->offset, node->flags); |
762 } | 762 } |
763 } | 763 } |
764 | 764 |
807 { | 807 { |
808 // Mark as done | 808 // Mark as done |
809 node->privFlags |= PACK_EXTRACTED; | 809 node->privFlags |= PACK_EXTRACTED; |
810 | 810 |
811 // Print one entry | 811 // Print one entry |
812 dmPrint(0, "Extracting: %-32s [siz=%d, cmp=%d, offs=0x%08x, flags=0x%04x]\n", | 812 dmPrint(0, "Extracting: %-32s [siz=%d, cmp=%d, offs=0x%08" DM_PRIx_SIZE_T ", flags=0x%04x]\n", |
813 node->filename, node->size, node->length, | 813 node->filename, node->size, node->length, |
814 node->offset, node->flags); | 814 node->offset, node->flags); |
815 | 815 |
816 dmPackExtractFile(pack, node, optDoCompress); | 816 dmPackExtractFile(pack, node, optDoCompress); |
817 } | 817 } |