Removed "Fatal" from error messages
BUG=chromium-os:36116
TEST=boot system, made sure Fatal message doesn't appear in /var/log/messages
Change-Id: I922ee30cceb01482ea838ef5ba3e35298671dbad
Reviewed-on: https://gerrit.chromium.org/gerrit/37665
Tested-by: Paul Taysom <taysom@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
Commit-Ready: Paul Taysom <taysom@chromium.org>
diff --git a/bootcache.c b/bootcache.c
index 5abcc95..c93eec8 100644
--- a/bootcache.c
+++ b/bootcache.c
@@ -98,7 +98,11 @@
#define PRx(_x) printf("|%s<%d> %s %llx\n", __FUNCTION__, __LINE__, \
# _x, (unsigned long long)(_x));
-/* pr_fatal: print error message and exit */
+/*
+ * pr_fatal: Because bootcache is not critical to
+ * the running of the system, we only print what
+ * happened and exit.
+ */
static void pr_fatal(
const char *file,
const char *func,
@@ -112,7 +116,7 @@
int r;
fflush(stdout);
- r = snprintf(msg, n, "Fatal %s %s:%s<%d> ", Progname, file, func, line);
+ r = snprintf(msg, n, "%s %s:%s<%d> ", Progname, file, func, line);
n -= r;
i += r;
if (n && fmt) {