scpi_serial.c: Improve an error message.

This commit is contained in:
Uwe Hermann 2018-05-31 20:44:33 +02:00
parent 0261956fab
commit 0c8aedb543
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ static int scpi_serial_send(void *priv, const char *command)
result = serial_write_blocking(serial, command, strlen(command), 0); result = serial_write_blocking(serial, command, strlen(command), 0);
if (result < 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; return SR_ERR;
} }