chiark / gitweb /
bootchart: more useful error message for common error
authorShawn Landden <shawn@churchofgit.com>
Mon, 23 Mar 2015 10:51:35 +0000 (03:51 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Mar 2015 04:12:03 +0000 (00:12 -0400)
Reported-by: tfirg_ on IRC
src/bootchart/store.c

index 607cc5e..dfa681f 100644 (file)
@@ -176,7 +176,7 @@ vmstat_next:
                 /* overall CPU utilization */
                 schedstat = openat(procfd, "schedstat", O_RDONLY);
                 if (schedstat == -1) {
-                        log_error_errno(errno, "Failed to open /proc/schedstat: %m");
+                        log_error_errno(errno, "Failed to open /proc/schedstat (requires CONFIG_SCHEDSTATS=y in kernel config): %m");
                         exit(EXIT_FAILURE);
                 }
         }