]> sigrok.org Git - libsigrok.git/commitdiff
lipgpib: Enhanced error message
authorFrank Stettner <redacted>
Thu, 26 Oct 2017 10:21:00 +0000 (12:21 +0200)
committerFrank Stettner <redacted>
Tue, 7 Nov 2017 11:04:30 +0000 (12:04 +0100)
src/scpi/scpi_libgpib.c

index cab72df720f426bfcfc9f7f19909bb9862da7e03..2f3256be948e2eae404d02cda0e38b4391bab465 100644 (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;
        }