The issue is that the placeholder "%llu" of the printf format string differs depending on the arch.
The macros in inttypes.h have been defined exactly for that conflict. Why not using it?