[PATCH] ARM: Prefix revision number in /proc/cpuinfo
Daniel Mack
daniel at caiaq.de
Thu Nov 12 17:03:14 EST 2009
Hi Russell,
On Thu, Nov 12, 2009 at 09:52:01PM +0000, Russell King - ARM Linux wrote:
> On Thu, Nov 12, 2009 at 02:58:07PM +0100, Daniel Mack wrote:
> > The revision field in /proc/cpuinfo is reported as hex number, so it
> > should have a '0x' prefix to make that clear. Otherwise, parsers
> > will take it as decimal number unless it contains a letter.
>
> So what you're doing is possibly breaking existing parsers (which
> probably already assume it is hex) to fix buggy parsers?
I wouldn't call that fixing a buggy parser. On my board, the revision is
0x101 which was parsed as 101. You can't know it is in hex unless you
look at the sources.
Daniel
More information about the linux-arm-kernel
mailing list