Fix code style.
Add casts to print byte array contents properly as hex bytes.