On Fri, Jun 24, 2011 at 1:03 PM, Øyvind Harboe <oyvind.har...@zylin.com> wrote:
> The patch fails.
>
> Could you rebase and repost?
>
I think the whole idea is fail.
This patch adds more problems than it fixes. What size of unsigned
long is on amd64 or ppc64?
PRIx macros are for fixed-width types, like int32_t. Unsigned long
will be different on
each architecture, I already wrote about this above. For basic C types
there is standard
printf patterns. for unsigned long it is %lu, for signed types that is
%d, for long signed - %ld,
regardless of actual type length in octets.
PRIx were implemented just to remove guessing on how uint64_t is
implemented on this
particular architecture.

Just check this patch. Remove all usage of PRIx macros for standard C
types. Add for fixed-length
types. ... PROFIT!

All the best,
S.
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to