X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsigrok.c;h=a8b67afe77dd2ed9f4066054a00761f55fb31086;hb=25824c65721f0f21cadf1607fad367c7e7831816;hp=8a325fe9f07006d4e68526696bde2ed954ffedc2;hpb=8fd8f76dc11064e75e44448d16d35e09e46191a2;p=collectd.git diff --git a/src/sigrok.c b/src/sigrok.c index 8a325fe9..a8b67afe 100644 --- a/src/sigrok.c +++ b/src/sigrok.c @@ -21,8 +21,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include #include @@ -340,9 +340,7 @@ static int sigrok_init(void) { status = plugin_thread_create(&sr_thread, NULL, sigrok_read_thread, NULL, "sigrok read"); if (status != 0) { - char errbuf[1024]; - ERROR("sigrok plugin: Failed to create thread: %s.", - sstrerror(errno, errbuf, sizeof(errbuf))); + ERROR("sigrok plugin: Failed to create thread: %s.", STRERRNO); return -1; } sr_thread_running = TRUE;