]> sigrok.org Git - libsigrok.git/commitdiff
scpi_serial.c: Improve an error message.
authorUwe Hermann <redacted>
Thu, 31 May 2018 18:44:33 +0000 (20:44 +0200)
committerUwe Hermann <redacted>
Fri, 1 Jun 2018 12:43:10 +0000 (14:43 +0200)
src/scpi/scpi_serial.c

index ea30fe023c8b42b705d5877825dd65fcfe0429af..23a5e3f02cb31acf784242d418dd1821f36ae57b 100644 (file)
@@ -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;
        }