Formatting with spaces and returns in hex dump.

There are two changes, both only related to logging:
- Increase the buffer size in sc_do_log_va to 4096.
- Fix formatting in sc_hex_dump so that it prints an space every 16 bytes and one return every 48. That helps when comparing large objects. This seems to be the original intention, but the spaces and returns were overwritten by the following characters.