[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5f7269b6-f53d-b9d3-96f7-b2f86ccf759e@gmail.com>
Date: Wed, 19 Dec 2018 22:00:38 +0200
From: Serhey Popovych <serhe.popovych@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>,
netdev@...r.kernel.org
Cc: dedeckeh@...il.com
Subject: Re: [PATCH iproute2] fix print_0xhex on 32 bit
Stephen Hemminger wrote:
> The argument to print_0xhex is converted to unsigned long long
> so the format string give for normal printout has to be some
> variant of %llx. Otherwise, bogus values will be printed on
> 32 bit platforms.
Sorry it is too late and change is merged as commit 90c5c969f0b9
("fix print_0xhex on 32 bit") but I want to ask following:
$ printf '0x%llx != %#llx\n' 0 0
0x0 != 0
So we potentially can get "tos 0" vs "tos 0x0" previously. Is that
expected and will not cause any compatibility problems?
It is clear that 0 is always zero, but some code may rely on 0x form
even for zero. What do you think?
Thanks.
Download attachment "signature.asc" of type "application/pgp-signature" (491 bytes)
Powered by blists - more mailing lists