From 744b66353096552f6a23a95bff7b088af24ac555 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 15 Aug 2010 15:50:12 -0700 Subject: [PATCH] gzip: Use 0x%04x instead of %x when printing 16-bit checksums * gzip.c (get_method): Use 0x%04x, not %x, to print 16-bit checksums. Inspired by a suggestion of Greg Roelofs in http://lists.gnu.org/archive/html/bug-gzip/2010-08/msg00004.html --- gzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gzip.c b/gzip.c index 65f5897..d42bfa8 100644 --- a/gzip.c +++ b/gzip.c @@ -1420,7 +1420,7 @@ local int get_method(in) if (header16 != crc16) { fprintf (stderr, - "%s: %s: header checksum %x != computed checksum %x\n", + "%s: %s: header checksum 0x%04x != computed checksum 0x%04x\n", program_name, ifname, header16, crc16); exit_code = ERROR; if (force <= 1) -- 2.30.2