uni-t-dmm: use common hex dump helper routine

This commit is contained in:
Gerhard Sittig 2018-10-06 19:17:27 +02:00 committed by Uwe Hermann
parent d8bc7ca3e6
commit f1d0755b73
1 changed files with 5 additions and 4 deletions

View File

@ -164,10 +164,11 @@ static void log_8byte_chunk(const uint8_t *buf)
static void log_dmm_packet(const uint8_t *buf)
{
sr_dbg("DMM packet: %02x %02x %02x %02x %02x %02x %02x"
" %02x %02x %02x %02x %02x %02x %02x",
buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6],
buf[7], buf[8], buf[9], buf[10], buf[11], buf[12], buf[13]);
GString *text;
text = sr_hexdump_new(buf, 14);
sr_dbg("DMM packet: %s", text->str);
sr_hexdump_free(text);
}
static int get_and_handle_data(struct sr_dev_inst *sdi)