]> sigrok.org Git - libsigrok.git/commitdiff
Better error reporting on session start failure
authorBert Vermeulen <redacted>
Wed, 16 Oct 2013 08:40:38 +0000 (10:40 +0200)
committerBert Vermeulen <redacted>
Wed, 16 Oct 2013 08:40:53 +0000 (10:40 +0200)
session.c

index 160d13fb3d6fbfe589321480ed08d6b7f7a34823..1cf4170e220a1904ee798cb0161a29e67fcbef90 100644 (file)
--- a/session.c
+++ b/session.c
@@ -354,7 +354,7 @@ SR_API int sr_session_start(void)
                sdi = l->data;
                if ((ret = sdi->driver->dev_acquisition_start(sdi, sdi)) != SR_OK) {
                        sr_err("%s: could not start an acquisition "
-                              "(%d)", __func__, ret);
+                              "(%s)", __func__, sr_strerror(ret));
                        break;
                }
        }