lipgpib: Enhanced error message

This commit is contained in:
Frank Stettner 2017-10-26 12:21:00 +02:00
parent 767ca13532
commit ae32859759
1 changed files with 3 additions and 2 deletions

View File

@ -118,8 +118,9 @@ static int scpi_gpib_read_data(void *priv, char *buf, int maxlen)
if (ibsta & ERR)
{
sr_err("Error while reading SCPI response: iberr = %s.",
gpib_error_string(iberr));
sr_err("Error while reading SCPI response: "
"iberr = %s, ibsta = %d.",
gpib_error_string(iberr), ibsta);
return SR_ERR;
}