lkml.org 
[lkml]   [2008]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [3/7] Use shorter addresses in i386 segfault printks
Harvey Harrison wrote:
>>>
>> Casting to (void *) and using %p is probably your best bet. That's what
>> it really is anyway.
>>
>> Note: in the kernel right now, %p doesn't have the leading 0x prefix,
>> which it probably should...
>
> Well, that won't exactly be the nicest looking solution in places, maybe
> a shorthand could be developed for this, or could another format
> specifier be added that implicitly does the (void *) cast? (%P perhaps)
>

Not without losing the ability of gcc to type-check printk arguments.

-hpa


\
 
 \ /
  Last update: 2008-01-17 04:29    [W:0.085 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site