]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
turbostat plugin: show error details
authorPavel Rochnyack <pavel2000@ngs.ru>
Thu, 5 Jul 2018 12:27:15 +0000 (19:27 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Thu, 5 Jul 2018 12:27:17 +0000 (19:27 +0700)
src/turbostat.c

index 68cf412090fd2b767c67c5552f0bcccb6268821e..b5d35204d6ca08fb5bd527b6e7af800f704f89fa 100644 (file)
@@ -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;
   }