From: Bert Vermeulen Date: Wed, 16 Oct 2013 08:40:38 +0000 (+0200) Subject: Better error reporting on session start failure X-Git-Tag: libsigrok-0.2.2~41 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=568dcacc1a43f5bfb5a103e6e9b6a5ad50ea2d08;p=libsigrok.git Better error reporting on session start failure --- diff --git a/session.c b/session.c index 160d13fb..1cf4170e 100644 --- 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; } }