Re: [PATCH 4/5 v2] x86 boot: show pfn addresses in hex not decimalin some kernel info printks

From: Marco Cesati
Date: Wed Jun 25 2008 - 05:03:10 EST


On Tue, 24 Jun 2008, Linus Torvalds wrote:
> > I'd be inclined instead to use "%P" for symbolic addrs.
> That doesn't work - gcc warns about it.
>
> That turns out to be a problem with %#p too.

I believe that using "%-p" instead of "%#p" would work.
The canonical meaning of "%-p" should be the very same as
"%p", but gcc should not complain because it is
ready to parse a format string like "%-10p" (which is of
course different than "%10p").

A bit too tricky, perhaps?!

Tested on gcc 4.1.2.

Marco

--
Marco Cesati <cesati@xxxxxxxxxxx>
Universita' degli Studi di Roma Tor Vergata - DISP
via del Politecnico 1, 00133 Roma
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/