vold: set klog level so e2fsck output is logged
When mounting an encrypted filesystem vold calls fs_mgr, which
will call e2fsck on the fielsystem if it's configured to, and
fs_mgr will attempt to log the output the kernel log. However,
if won't log anything unless the klog level is set to 6, aka INFO.
Change-Id: I8ac34941330262ea3414681b872fbbeb75391461
diff --git a/main.cpp b/main.cpp
index 9c75980..02506e7 100644
--- a/main.cpp
+++ b/main.cpp
@@ -27,6 +27,7 @@
#define LOG_TAG "Vold"
+#include "cutils/klog.h"
#include "cutils/log.h"
#include "cutils/properties.h"
@@ -52,6 +53,9 @@
mkdir("/dev/block/vold", 0755);
+ /* For when cryptfs checks and mounts an encrypted filesystem */
+ klog_set_level(6);
+
/* Create our singleton managers */
if (!(vm = VolumeManager::Instance())) {
SLOGE("Unable to create VolumeManager");