session: Fixed error reporting.
This commit is contained in:
parent
42eb54fb62
commit
446a037205
|
@ -273,7 +273,7 @@ int sr_session_start(void)
|
||||||
/* TODO: Check for device != NULL. */
|
/* TODO: Check for device != NULL. */
|
||||||
if ((ret = device->plugin->start_acquisition(
|
if ((ret = device->plugin->start_acquisition(
|
||||||
device->plugin_index, device)) != SR_OK) {
|
device->plugin_index, device)) != SR_OK) {
|
||||||
sr_err("session: %s: could not start an acquisition ",
|
sr_err("session: %s: could not start an acquisition "
|
||||||
"(%d)", __func__, ret);
|
"(%d)", __func__, ret);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue