MINOR: tools: add a generic hexdump function for debugging

debug_hexdump() prints to the requested output stream (typically stdout
or stderr) an hex dump of the blob passed in argument. This is useful
to help debug binary protocols.
2 files changed