X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsigrok.c;h=eeab8c951b543e6b36d06354a4b7559f97efbe73;hb=0b7cd83a5e6bac068ea83a88a5ddcfb07c09fbec;hp=8a325fe9f07006d4e68526696bde2ed954ffedc2;hpb=68c08bd380d63281f5707e893c27f952c5fde1d8;p=collectd.git diff --git a/src/sigrok.c b/src/sigrok.c index 8a325fe9..eeab8c95 100644 --- a/src/sigrok.c +++ b/src/sigrok.c @@ -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;