sc debug hex

use the same code base everywhere for doing a hexdump to the log