X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Funi-t-dmm%2Fprotocol.c;h=bd231160fee51633708e60bcbf64159fc296c98d;hb=685ed709982f5edd84f7666d0a8e03c2124dff92;hp=94abb16bc8ae1277d07d5bf8511999803469c8e6;hpb=f7711ed56c905bb8562b6076bb70904950a9213c;p=libsigrok.git diff --git a/src/hardware/uni-t-dmm/protocol.c b/src/hardware/uni-t-dmm/protocol.c index 94abb16b..bd231160 100644 --- a/src/hardware/uni-t-dmm/protocol.c +++ b/src/hardware/uni-t-dmm/protocol.c @@ -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)