Print data packet.
Hexdump function. Dumps raw memory in HEX and text.

Function borrowed from
http://grapsus.net/blog/post/Hexadecimal-dump-in-C