Mercurial > hg > dmlib
diff tools/gfxconv.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 | 82cb32297ed2 |
children | 68efae89c034 |
line wrap: on
line diff
--- a/tools/gfxconv.c Thu Jan 09 14:55:41 2020 +0200 +++ b/tools/gfxconv.c Thu Jan 09 15:20:23 2020 +0200 @@ -1713,7 +1713,8 @@ if ((tmpBuf = dmMalloc(outBufSize)) == NULL) { - dmErrorMsg("Could not allocate %d bytes for conversion buffer.\n", + dmErrorMsg("Could not allocate %" DM_PRIu_SIZE_T + " bytes for conversion buffer.\n", outBufSize); goto error; } @@ -2078,7 +2079,9 @@ dataSize = optInSkip; dataRealOffs = dataSizeOrig - optInSkip; - dmMsg(1, "Input skip -%d (-0x%x). Offset %d (0x%x), size %d (0x%x).\n", + dmMsg(1, "Input skip -%d (-0x%x). " + "Offset %" DM_PRIu_SIZE_T " (0x%" DM_PRIx_SIZE_T "), " + "size %" DM_PRIu_SIZE_T " (0x%" DM_PRIx_SIZE_T ").\n", optInSkip, optInSkip, dataRealOffs, dataRealOffs, dataSize, dataSize); @@ -2090,7 +2093,8 @@ dataSize = dataSizeOrig - optInSkip; dataRealOffs = optInSkip; - dmMsg(1, "Input skip %d (0x%x), size %d (0x%x).\n", + dmMsg(1, "Input skip %d (0x%x), " + "size %" DM_PRIu_SIZE_T " (0x%" DM_PRIx_SIZE_T ").\n", optInSkip, optInSkip, dataSize, dataSize); }