From: Frank Stettner Date: Thu, 26 Oct 2017 10:21:00 +0000 (+0200) Subject: lipgpib: Enhanced error message X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=ae32859759fabe98361201f0b70489d02dddf13b lipgpib: Enhanced error message --- diff --git a/src/scpi/scpi_libgpib.c b/src/scpi/scpi_libgpib.c index cab72df7..2f3256be 100644 --- a/src/scpi/scpi_libgpib.c +++ b/src/scpi/scpi_libgpib.c @@ -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; }