Mercurial > hg > dmlib
diff tools/lib64fmts.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 | 5ea616925849 |
children | 5d391c31ebc9 |
line wrap: on
line diff
--- a/tools/lib64fmts.c Thu Jan 09 20:11:41 2020 +0200 +++ b/tools/lib64fmts.c Thu Jan 09 20:14:58 2020 +0200 @@ -1455,7 +1455,8 @@ if (mem.len != fmtUncompSize) { res = dmError(DMERR_INVALID_DATA, - "%s: Unexpected uncompressed data size %d bytes (should be %d).\n", + "%s: Unexpected uncompressed data size %" DM_PRIu_SIZE_T + " bytes (should be %" DM_PRIu_SIZE_T ").\n", cfg.func, mem.len, fmtUncompSize); goto out; } @@ -1464,7 +1465,7 @@ if ((dstBuf = dmMalloc0(dstSize)) == NULL) { res = dmError(DMERR_MALLOC, - "%s: Could not allocate temporary memory buffer of %d bytes.\n", + "%s: Could not allocate temporary memory buffer of %" DM_PRIu_SIZE_T " bytes.\n", cfg.func, dstSize); goto out; }