From: Martin Ling Date: Sat, 7 Dec 2013 19:17:49 +0000 (+0000) Subject: brymen-dmm: Use port name instead of fd in debug message. X-Git-Tag: libsigrok-0.3.0~457 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=af473e0eb2db5475bdc1da6a87edb828d163c015;p=libsigrok.git brymen-dmm: Use port name instead of fd in debug message. --- diff --git a/hardware/brymen-dmm/protocol.c b/hardware/brymen-dmm/protocol.c index 4456568a..230b60d3 100644 --- a/hardware/brymen-dmm/protocol.c +++ b/hardware/brymen-dmm/protocol.c @@ -186,8 +186,8 @@ SR_PRIV int brymen_stream_detect(struct sr_serial_dev_inst *serial, maxlen = *buflen; - sr_dbg("Detecting packets on FD %d (timeout = %" PRIu64 - "ms, baudrate = %d).", serial->fd, timeout_ms, baudrate); + sr_dbg("Detecting packets on %s (timeout = %" PRIu64 + "ms, baudrate = %d).", serial->port, timeout_ms, baudrate); /* Assume 8n1 transmission. That is 10 bits for every byte. */ byte_delay_us = 10 * (1000000 / baudrate);