Skip to contentSkip to conversation

x86 boot: show pfn addresses in hex not decimal in some kernel info printks

PATCH Marco Cesati 1 participant 1 message Jun 25, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Linus Torvalds
Quoted 1 line

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

Signature · 3 lines
Marco Cesati <[email protected]>
Universita' degli Studi di Roma Tor Vergata - DISP
via del Politecnico 1, 00133 Roma