lkml.org 
[lkml]   [2008]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fix broken debug output reserve_region_with_split()


On Fri, 17 Oct 2008, Benjamin Herrenschmidt wrote:
>
> Ok, I'll wait for more comments before a respin to :-) I'm mostly
> wondering whether to use fixed sized format rather than the current
> variable size (and pad with zeros).

Sadly, I think that gcc warns if we were to support %08pR, so we can't
pass down flags.

That said, I don't much like SPECIAL in the flags. We never do that thing.
Doing a git grep for some range printouts, we tend to do things like

[%lx,%lx]
[%x - %x]
[%llx, %llx]
[%016lx - %016lx]
<%016llx-%016llx>

But using "0x%llx" or "%#llx" is very rare. It happens (notably
drivers/pci/setup-res.c), but it's not common.

But it would be kind of nice to be able to do extended flags. Maybe we
could do it with

%p04R

and the 04 would be parsed as flags, the same way we do %04x. And then if
you want the 0x, you can use %p#08R..

Linus


\
 
 \ /
  Last update: 2008-10-17 05:53    [W:0.048 / U:1.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site