X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fsigrok.c;h=eeab8c951b543e6b36d06354a4b7559f97efbe73;hp=8a325fe9f07006d4e68526696bde2ed954ffedc2;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=c99e3a4d169ada9299c73e20662d17debdc32e1f 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;