Use printf format macros from inttypes.h. Additionally, this fixes a warning when building with clang. (cherry picked from commit c0ae5152d1)
c0ae5152d1