Merge "ext4_utils: add logging in forked command"
diff --git a/ext4_utils/ext4_crypt_init_extensions.cpp b/ext4_utils/ext4_crypt_init_extensions.cpp
index e98db6e..ddbbd9a 100644
--- a/ext4_utils/ext4_crypt_init_extensions.cpp
+++ b/ext4_utils/ext4_crypt_init_extensions.cpp
@@ -52,7 +52,8 @@
     }
 
     const char* argv[] = { "/system/bin/vdc", "--wait", "cryptfs", "enablefilecrypto" };
-    int rc = android_fork_execvp(4, (char**) argv, NULL, false, true);
+    int rc = android_fork_execvp_ext(arraysize(argv), (char**) argv, NULL, false,
+                                     LOG_KLOG, false, NULL, NULL, 0);
     LOG(INFO) << "enablefilecrypto result: " << rc;
     return rc;
 }
@@ -75,7 +76,8 @@
 int e4crypt_do_init_user0()
 {
     const char* argv[] = { "/system/bin/vdc", "--wait", "cryptfs", "init_user0" };
-    int rc = android_fork_execvp(4, (char**) argv, NULL, false, true);
+    int rc = android_fork_execvp_ext(arraysize(argv), (char**) argv, NULL, false,
+                                     LOG_KLOG, false, NULL, NULL, 0);
     LOG(INFO) << "init_user0 result: " << rc;
     return rc;
 }