From: Pavel Rochnyack Date: Thu, 5 Jul 2018 12:27:15 +0000 (+0700) Subject: turbostat plugin: show error details X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=cbac2f1ed793c51433c2c37d75e71e25a7ff95cf;p=collectd.git turbostat plugin: show error details --- diff --git a/src/turbostat.c b/src/turbostat.c index 68cf4120..b5d35204 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; }