A uint8_t needs to be cast to unsigned for it to print correctly. (Otherwise it prints as a character.)