[systemd-devel] [PATCH] bootchart: more useful error message for common error

Shawn Landden shawn at churchofgit.com
Mon Mar 23 03:51:35 PDT 2015


Reported-by: tfirg_ on IRC
Signed-off-by: Shawn Landden <shawn at churchofgit.com>
---
 src/bootchart/store.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bootchart/store.c b/src/bootchart/store.c
index 607cc5e..dfa681f 100644
--- a/src/bootchart/store.c
+++ b/src/bootchart/store.c
@@ -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);
                 }
         }
-- 
2.2.1.209.g41e5f3a



More information about the systemd-devel mailing list