Mercurial > hg > dmlib
diff tools/fanalyze.c @ 2389:647671a9a0b8
More printf() format specifier size_t -related fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2020 20:14:58 +0200 |
parents | 36edd316184a |
children | 679732e4cfed |
line wrap: on
line diff
--- a/tools/fanalyze.c Thu Jan 09 20:11:41 2020 +0200 +++ b/tools/fanalyze.c Thu Jan 09 20:14:58 2020 +0200 @@ -718,7 +718,7 @@ if (match) { - dmPrint(0, "%08x : ", offs); + dmPrint(0, "%08" DM_PRIx_SIZE_T " : ", offs); dmPrintGrepValueList(node, TRUE, file, offs); } } @@ -795,7 +795,8 @@ { // Allocate comparision buffer // XXX: integer overflow? - dmPrint(2, "Allocating %d element (%d bytes) comparision buffer.\n", + dmPrint(2, "Allocating %" DM_PRIu_SIZE_T " element (%" DM_PRIu_SIZE_T + " bytes) comparision buffer.\n", compBufSize, compBufSize * sizeof(DMCompElem)); if ((compBuf = dmCalloc(compBufSize, sizeof(DMCompElem))) == NULL)