X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fscpi%2Fscpi_serial.c;h=23a5e3f02cb31acf784242d418dd1821f36ae57b;hb=653d087e15293c562409ef29ae231f8b16de39ea;hp=ea30fe023c8b42b705d5877825dd65fcfe0429af;hpb=0261956fab735018a6466c7610f62521faa8b5b9;p=libsigrok.git 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; }