X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fserial-dmm%2Fprotocol.c;fp=src%2Fhardware%2Fserial-dmm%2Fprotocol.c;h=71fc1a4635c480f646859f8ed62a2f63f0b66eca;hb=abcb13855f5dfdd34bdae5da0586b37c7d2d8731;hp=5e8912bf3d21c61906b25b0b21e7bd23b084c8dd;hpb=ce3fe379693f7ef113e027a674946e07f340a377;p=libsigrok.git diff --git a/src/hardware/serial-dmm/protocol.c b/src/hardware/serial-dmm/protocol.c index 5e8912bf..71fc1a46 100644 --- a/src/hardware/serial-dmm/protocol.c +++ b/src/hardware/serial-dmm/protocol.c @@ -31,6 +31,9 @@ static void log_dmm_packet(const uint8_t *buf, size_t len) { GString *text; + if (sr_log_loglevel_get() < SR_LOG_DBG) + return; + text = sr_hexdump_new(buf, len); sr_dbg("DMM packet: %s", text->str); sr_hexdump_free(text);