Print hexadecimal function