Mercurial > hg > dmlib
comparison 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 |
comparison
equal
deleted
inserted
replaced
2388:2dbbc1c91231 | 2389:647671a9a0b8 |
---|---|
1453 | 1453 |
1454 // Check uncompressed size? | 1454 // Check uncompressed size? |
1455 if (mem.len != fmtUncompSize) | 1455 if (mem.len != fmtUncompSize) |
1456 { | 1456 { |
1457 res = dmError(DMERR_INVALID_DATA, | 1457 res = dmError(DMERR_INVALID_DATA, |
1458 "%s: Unexpected uncompressed data size %d bytes (should be %d).\n", | 1458 "%s: Unexpected uncompressed data size %" DM_PRIu_SIZE_T |
1459 " bytes (should be %" DM_PRIu_SIZE_T ").\n", | |
1459 cfg.func, mem.len, fmtUncompSize); | 1460 cfg.func, mem.len, fmtUncompSize); |
1460 goto out; | 1461 goto out; |
1461 } | 1462 } |
1462 | 1463 |
1463 // Allocate output buffer | 1464 // Allocate output buffer |
1464 if ((dstBuf = dmMalloc0(dstSize)) == NULL) | 1465 if ((dstBuf = dmMalloc0(dstSize)) == NULL) |
1465 { | 1466 { |
1466 res = dmError(DMERR_MALLOC, | 1467 res = dmError(DMERR_MALLOC, |
1467 "%s: Could not allocate temporary memory buffer of %d bytes.\n", | 1468 "%s: Could not allocate temporary memory buffer of %" DM_PRIu_SIZE_T " bytes.\n", |
1468 cfg.func, dstSize); | 1469 cfg.func, dstSize); |
1469 goto out; | 1470 goto out; |
1470 } | 1471 } |
1471 | 1472 |
1472 // Now that we have the uncompressed data (0x1ff0 bytes), we need to | 1473 // Now that we have the uncompressed data (0x1ff0 bytes), we need to |