aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2024-02-07 14:38:57 -0800
committerMark Adler <madler@alumni.caltech.edu>2024-02-07 14:38:57 -0800
commit81e7c386082ccff6a6f9ba78013a79cf8e1657d2 (patch)
treee350d9fdf45270d2c89be1aee4a6aca915edd960 /test
parent96d3e9e3dde39aaab732089495400ba59e30ad5f (diff)
downloadzlib-81e7c386082ccff6a6f9ba78013a79cf8e1657d2.tar.gz
zlib-81e7c386082ccff6a6f9ba78013a79cf8e1657d2.tar.bz2
zlib-81e7c386082ccff6a6f9ba78013a79cf8e1657d2.zip
Correct printf formats in test/infcover.c to %zu.
Diffstat (limited to 'test')
-rw-r--r--test/infcover.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/infcover.c b/test/infcover.c
index 8912c40..da774b5 100644
--- a/test/infcover.c
+++ b/test/infcover.c
@@ -185,7 +185,7 @@ local void mem_used(z_stream *strm, char *prefix)
185{ 185{
186 struct mem_zone *zone = strm->opaque; 186 struct mem_zone *zone = strm->opaque;
187 187
188 fprintf(stderr, "%s: %lu allocated\n", prefix, zone->total); 188 fprintf(stderr, "%s: %zu allocated\n", prefix, zone->total);
189} 189}
190 190
191/* show the high water allocation in bytes */ 191/* show the high water allocation in bytes */
@@ -193,7 +193,7 @@ local void mem_high(z_stream *strm, char *prefix)
193{ 193{
194 struct mem_zone *zone = strm->opaque; 194 struct mem_zone *zone = strm->opaque;
195 195
196 fprintf(stderr, "%s: %lu high water mark\n", prefix, zone->highwater); 196 fprintf(stderr, "%s: %zu high water mark\n", prefix, zone->highwater);
197} 197}
198 198
199/* release the memory allocation zone -- if there are any surprises, notify */ 199/* release the memory allocation zone -- if there are any surprises, notify */
@@ -218,7 +218,7 @@ local void mem_done(z_stream *strm, char *prefix)
218 218
219 /* issue alerts about anything unexpected */ 219 /* issue alerts about anything unexpected */
220 if (count || zone->total) 220 if (count || zone->total)
221 fprintf(stderr, "** %s: %lu bytes in %d blocks not freed\n", 221 fprintf(stderr, "** %s: %zu bytes in %d blocks not freed\n",
222 prefix, zone->total, count); 222 prefix, zone->total, count);
223 if (zone->notlifo) 223 if (zone->notlifo)
224 fprintf(stderr, "** %s: %d frees not LIFO\n", prefix, zone->notlifo); 224 fprintf(stderr, "** %s: %d frees not LIFO\n", prefix, zone->notlifo);