#define SCNx32 "lx" 

hexadecimal scanf format for uint32_t