changeset 2391:d1992206765a

Fix some format specifiers, was erraneously using DM_PRI*_SIZE_T instead of DM_PRI*64.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 Jan 2020 20:47:33 +0200
parents 88be5cf55caf
children 835b231d8083
files tools/packed.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tools/packed.c	Thu Jan 09 20:37:54 2020 +0200
+++ b/tools/packed.c	Thu Jan 09 20:47:33 2020 +0200
@@ -236,7 +236,7 @@
         hdr.dirOffset += node->length;
     }
 
-    dmMsg(1, "%d entries in PACK, dir at offset 0x%08" DM_PRIx_SIZE_T ".\n",
+    dmMsg(1, "%d entries in PACK, dir at offset 0x%08" DM_PRIx64 ".\n",
         hdr.dirEntries, hdr.dirOffset);
 
     // Write PACK header
@@ -708,7 +708,7 @@
                 }
                 else
                 {
-                    dmPrint(1, "%-32s ['%s', s=%d, c=%d, o=%ld, f=0x%04x]\n",
+                    dmPrint(1, "%-32s ['%s', s=%d, c=%d, o=%" DM_PRId64 ", f=0x%04x]\n",
                         srcFilenames[i], node->filename,
                         node->size, node->length, node->offset, node->flags);
                 }
@@ -756,7 +756,7 @@
 
                 if (match)
                 {
-                    dmPrint(0, "%-32s | %8d | %8d | %08" DM_PRIx_SIZE_T " | %04x\n",
+                    dmPrint(0, "%-32s | %8d | %8d | %08" DM_PRIx64 " | %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%08" DM_PRIx_SIZE_T ", flags=0x%04x]\n",
+                    dmPrint(0, "Extracting: %-32s [siz=%d, cmp=%d, offs=0x%08" DM_PRIx64 ", flags=0x%04x]\n",
                             node->filename, node->size, node->length,
                             node->offset, node->flags);