On Feb 26, 2007, at 1:54 PM, Bert Wesarg wrote:

I can only speak for a 3 year old linux system but I read evenly the wiki page https://svn.open-mpi.org/trac/ompi/wiki/PrintfCodes and I wonder if
someone tried this code. On my system the PRId32 is defined as "d" for
example. so to use this you need to write something like this:

printf("foo: %" PRIu32 ", bar: %ld\n", foo, bar);
             ^
note this extra '%'.

on the other hand printf have an extra length specifier for size_t, its
'z', so a minimal size_t printf conversion is "%zu".

Thanks, I've fixed the PRI usage case. Unfortunately, %zu isn't recognized by some versions of printf, so we can't use it in Open MPI.

BTW: are there any plans to provide mpi datatypes for these stdint.h types
like {,u}int{8,16,32,64,max,ptr}_t?

Not at this time.

Brian

Reply via email to