From dd17790576d17218f329344b0350be5d2215f88d Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Tue, 12 Nov 2013 03:04:57 -0700 Subject: [PATCH] Fix printf format warning. Remove leading space from positive value. --- compress.c | 2 +- exhal.c | 2 +- inhal.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compress.c b/compress.c index 4519b7a..d8de996 100644 --- a/compress.c +++ b/compress.c @@ -243,7 +243,7 @@ size_t unpack(uint8_t *packed, uint8_t *unpacked) { printf("Backref (rotate) : %i\n", methoduse[5]); printf("Backref (reverse): %i\n", methoduse[6]); - printf("\nCompressed size: % zd bytes\n", inpos); + printf("\nCompressed size: %u bytes\n", inpos); #endif return (size_t)outpos; diff --git a/exhal.c b/exhal.c index ec5af14..497bd61 100644 --- a/exhal.c +++ b/exhal.c @@ -52,7 +52,7 @@ int main (int argc, char **argv) { fseek(outfile, 0, SEEK_SET); fwrite((const void*)unpacked, 1, outputsize, outfile); - printf("Uncompressed size: % zd bytes\n", outputsize); + printf("Uncompressed size: %zd bytes\n", outputsize); fclose(infile); fclose(outfile); diff --git a/inhal.c b/inhal.c index 23d754e..16c04cc 100644 --- a/inhal.c +++ b/inhal.c @@ -76,7 +76,7 @@ int main (int argc, char **argv) { fseek(infile, 0, SEEK_END); inputsize = ftell(infile); - printf("Uncompressed size: % zd bytes\n", inputsize); + printf("Uncompressed size: %zd bytes\n", inputsize); if (inputsize > DATA_SIZE) { printf("Error: File must be a maximum of 65,536 bytes!\n");