qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 4/4] target-xxx: Use fprintf_function (format ch


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 4/4] target-xxx: Use fprintf_function (format checking)
Date: Mon, 1 Nov 2010 11:42:43 -0400 (EDT)

> > An even better fix than uint32_t would be to introduce TARGET_FMT_8lx 
> > (which maps to "%08"PRI_x64) so that, if for some reason the high 
> > 32-bit are not zero, they will be shown.
> >
> Yes. We already had a similar discussion about TARGET_FMT_PLX, see
> http://www.mail-archive.com/address@hidden/msg42977.html.
>
> There I suggested to define PRIxTPA (format specifier for a target
> physical address). We could also add a PRIxTUL (for target_ulong),
> so it would be possible to output "%04" PRIxTUL or "%08" PRIxTUL.
> Thus we could avoid the need for TARGET_FMT_8lx, TARGET_FMT_4lx
> and maybe even TARGET_FMT_2lx.

Yes, that would be nice to have too.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]