From cbac2f1ed793c51433c2c37d75e71e25a7ff95cf Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Thu, 5 Jul 2018 19:27:15 +0700 Subject: [PATCH] turbostat plugin: show error details --- src/turbostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0