summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 00f7d2c)
raw | patch | inline | side by side (parent: 00f7d2c)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 6 Dec 2015 11:09:20 +0000 (12:09 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 8 Dec 2015 08:24:48 +0000 (09:24 +0100) |
CID #38120
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/sigrok.c | patch | blob | history |
diff --git a/src/sigrok.c b/src/sigrok.c
index ba3e4062f0e9519544858ce982c0fc22c921a012..1a0536ad4f3cd6797f198063af3eaf89e02948ca 100644 (file)
--- a/src/sigrok.c
+++ b/src/sigrok.c
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.",
- strerror(status));
+ sstrerror (errno, errbuf, sizeof (errbuf)));
return -1;
}
sr_thread_running = TRUE;