printf: make sure %x are treated unsigned
When using %x, the number must be treated as unsigned as otherwise it would get sign-extended on for example 64bit machines and do wrong output. This problem showed when doing printf("%08x", 0xffeeddcc) on a 64bit host.
parent
d3d5c4a4
Please register or sign in to comment