Add hexcode packet printer
Fix print logic error: