Mercurial > hg > dmlib
diff 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 |
line wrap: on
line diff
--- a/tools/packed.c Thu Jan 09 14:55:41 2020 +0200 +++ b/tools/packed.c Thu Jan 09 15:20:23 2020 +0200 @@ -236,7 +236,7 @@ hdr.dirOffset += node->length; } - dmMsg(1, "%d entries in PACK, dir at offset 0x%08x.\n", + dmMsg(1, "%d entries in PACK, dir at offset 0x%08" DM_PRIx_SIZE_T ".\n", hdr.dirEntries, hdr.dirOffset); // Write PACK header @@ -756,7 +756,7 @@ if (match) { - dmPrint(0, "%-32s | %8d | %8d | %08x | %04x\n", + dmPrint(0, "%-32s | %8d | %8d | %08" DM_PRIx_SIZE_T " | %04x\n", node->filename, node->size, node->length, node->offset, node->flags); } @@ -809,7 +809,7 @@ node->privFlags |= PACK_EXTRACTED; // Print one entry - dmPrint(0, "Extracting: %-32s [siz=%d, cmp=%d, offs=0x%08x, flags=0x%04x]\n", + dmPrint(0, "Extracting: %-32s [siz=%d, cmp=%d, offs=0x%08" DM_PRIx_SIZE_T ", flags=0x%04x]\n", node->filename, node->size, node->length, node->offset, node->flags);