]> sigrok.org Git - libsigrok.git/blobdiff - src/scpi/scpi_serial.c
scpi_serial.c: Improve an error message.
[libsigrok.git] / 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;
        }