From: Paul Eggert Date: Sun, 15 Aug 2010 22:50:12 +0000 (-0700) Subject: gzip: Use 0x%04x instead of %x when printing 16-bit checksums X-Git-Tag: v1.5~65 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=744b66353096552f6a23a95bff7b088af24ac555;p=debian%2Fgzip 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 --- 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)