#define SCNxLEAST32 "lx" 

hexadecimal scanf format for uint_least32_t