Forum Discussion
Altera_Forum
Honored Contributor
10 years agoOh and I forgot... The %x in printf is expecting an int (4 bytes) argument, but you are giving it a byte. It's not a problem if it's the last argument in the printf call, but if you decide to add more debugging information later it will probably get confusing. I suggest casting your arguments to (int) in the printf call.