* Use format macros for printing to fix priting on 64 bit. * Use int32 for all priority fields, some of them were truncated.