lipgpib: Enhanced error message
This commit is contained in:
parent
767ca13532
commit
ae32859759
|
@ -118,8 +118,9 @@ static int scpi_gpib_read_data(void *priv, char *buf, int maxlen)
|
||||||
|
|
||||||
if (ibsta & ERR)
|
if (ibsta & ERR)
|
||||||
{
|
{
|
||||||
sr_err("Error while reading SCPI response: iberr = %s.",
|
sr_err("Error while reading SCPI response: "
|
||||||
gpib_error_string(iberr));
|
"iberr = %s, ibsta = %d.",
|
||||||
|
gpib_error_string(iberr), ibsta);
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue