From: Pavel Rochnyack Date: Thu, 5 Jul 2018 12:27:15 +0000 (+0700) Subject: turbostat plugin: show error details X-Git-Tag: collectd-5.9.0~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbac2f1ed793c51433c2c37d75e71e25a7ff95cf;p=thirdparty%2Fcollectd.git turbostat plugin: show error details --- diff --git a/src/turbostat.c b/src/turbostat.c index 68cf41209..b5d35204d 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -1429,7 +1429,7 @@ static int turbostat_read(void) { /* Saving the scheduling affinity, as it will be modified by get_counters */ if (sched_getaffinity(0, cpu_saved_affinity_setsize, cpu_saved_affinity_set) != 0) { - ERROR("turbostat plugin: Unable to save the CPU affinity"); + ERROR("turbostat plugin: Unable to save the CPU affinity: %s", STRERRNO); return -1; }