Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index 0359b2d79e98d59f8ea8f1f5d7970607b581bc44..d21efe696c53499c3179ac26a916906bcfa40be7 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -111,8 +111,10 @@ static bool CPUInfoContainsString(const char * search_string) { |
FILE* f = NULL; |
const char* what = search_string; |
- if (NULL == (f = fopen(file_name, "r"))) |
+ if (NULL == (f = fopen(file_name, "r"))) { |
+ OS::PrintError("Failed to open /proc/cpuinfo\n"); |
return false; |
+ } |
int k; |
while (EOF != (k = fgetc(f))) { |