Two errors in logging

Hello,
I spotted two mistakes in the logging.
One is that when length of pin properties structure is according to PROPERTIES_v5, the log shows "Returned PIN properties structure has bad length (8/4)", although it is treated as valid.
The other is that sc_dump_hex doesn't split hex dumps in different lines or inserts spaces as it seems that the code intended to do.
They are both trivial and related to logging, therefore just one pull. I hope it is not entirely useless.
Regards,
Germán.