projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1455 from rubenk/configure-ac-remove-dead-code
[collectd.git]
/
src
/
sigrok.c
diff --git
a/src/sigrok.c
b/src/sigrok.c
index
eecb54c
..
487f31a
100644
(file)
--- a/
src/sigrok.c
+++ b/
src/sigrok.c
@@
-360,10
+360,13
@@
static int sigrok_init(void)
return -1;
}
return -1;
}
- if ((status = plugin_thread_create(&sr_thread, NULL, sigrok_read_thread,
- NULL)) != 0) {
+ status = plugin_thread_create(&sr_thread, NULL, sigrok_read_thread,
+ NULL);
+ if (status != 0)
+ {
+ char errbuf[1024];
ERROR("sigrok plugin: Failed to create thread: %s.",
ERROR("sigrok plugin: Failed to create thread: %s.",
- s
trerror(status
));
+ s
strerror (errno, errbuf, sizeof (errbuf)
));
return -1;
}
sr_thread_running = TRUE;
return -1;
}
sr_thread_running = TRUE;