|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] sizeof(long) different under windows x64 and linux x64
I doubt anyone printf's hypercall struct fields directly. If they do, we can
provide a suitable PRIxxx macro. Yeah, they're a bit ugly but it's the right
answer to this problem. We use PRIxxx macros extensively in Xen code
already.
-- Keir
On 23/1/08 20:41, "Chris Morrow" <cmorrow@xxxxxxxxxxxxxx> wrote:
> Andy Grover wrote:
>
>> I think it's very hard to be LP64/LLP64-clean without actual testing on
>> both.
>
> Printf format statements need to reflect whether the 64 bit type is a
> long or a long long.
>
> uintptr_t foo
> printf("%lx", foo) or printf("%llx", foo);
>
> This can be a pain to resolve. /usr/include/inttypes.h has defines that
> are supposed to help with this, but they are ugly to use.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|