From: Uwe Hermann Date: Thu, 31 May 2018 18:44:33 +0000 (+0200) Subject: scpi_serial.c: Improve an error message. X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=0c8aedb543f4a04ab0edbaf22ffe12f901e1523c;p=libsigrok.git scpi_serial.c: Improve an error message. --- diff --git a/src/scpi/scpi_serial.c b/src/scpi/scpi_serial.c index ea30fe02..23a5e3f0 100644 --- a/src/scpi/scpi_serial.c +++ b/src/scpi/scpi_serial.c @@ -123,7 +123,8 @@ static int scpi_serial_send(void *priv, const char *command) result = serial_write_blocking(serial, command, strlen(command), 0); if (result < 0) { - sr_err("Error while sending SCPI command: '%s'.", command); + sr_err("Error while sending SCPI command '%s': %d.", + command, result); return SR_ERR; }