X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils_rrdcreate.c;h=92cecd038dd7dce91a6635cc295ddb6e908a8a11;hb=fc2993befd2d9d6d9392cf109f033d0d6f421436;hp=87ad968d5f7c756610397dae6beb7a53a3a2b4b7;hpb=0b7cd83a5e6bac068ea83a88a5ddcfb07c09fbec;p=collectd.git diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c index 87ad968d..92cecd03 100644 --- a/src/utils_rrdcreate.c +++ b/src/utils_rrdcreate.c @@ -556,9 +556,7 @@ static int srrd_create_async(const char *filename, /* {{{ */ status = pthread_create(&thread, &attr, srrd_create_thread, args); if (status != 0) { - char errbuf[1024]; - ERROR("srrd_create_async: pthread_create failed: %s", - sstrerror(status, errbuf, sizeof(errbuf))); + ERROR("srrd_create_async: pthread_create failed: %s", STRERROR(status)); pthread_attr_destroy(&attr); srrd_create_args_destroy(args); return status;