%x corresponds to int and unsigned int. %lx corresponds to long integer and unsigned long integer.
For most compilers at present, both int and long are 4 bytes, so it can be considered that there is no difference between them.