Added %x to string buffer printf.