From: Uwe Hermann Date: Thu, 31 May 2018 18:26:50 +0000 (+0200) Subject: scpi_serial.c: Drop an unneeded log message. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0261956fab735018a6466c7610f62521faa8b5b9;p=libsigrok.git scpi_serial.c: Drop an unneeded log message. The number of bytes read is already logged by the serial backend: sr: [00:00.072857] scpi_serial: Read 1 bytes into buffer. sr: [00:00.073884] serial: Read 1/2008 bytes. sr: [00:00.073900] scpi_serial: Read 1 bytes into buffer. sr: [00:00.074896] serial: Read 1/2007 bytes. sr: [00:00.074905] scpi_serial: Read 1 bytes into buffer. sr: [00:00.075949] serial: Read 1/2006 bytes. --- diff --git a/src/scpi/scpi_serial.c b/src/scpi/scpi_serial.c index 464924ce..ea30fe02 100644 --- a/src/scpi/scpi_serial.c +++ b/src/scpi/scpi_serial.c @@ -152,8 +152,6 @@ static int scpi_serial_read_data(void *priv, char *buf, int maxlen) return ret; if (ret > 0) { - sr_spew("Read %d bytes into buffer.", ret); - if (buf[ret - 1] == '\n') { sscpi->got_newline = TRUE; sr_spew("Received terminator");