fbe: move key directory logging within key directory check
Change-Id: I9d1a50ab0fb8b9bbb2e0686c6ffe28b4b22634b4
diff --git a/partition.cpp b/partition.cpp
index 033b518..5928cdd 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -724,11 +724,11 @@
DataManager::SetValue(TW_IS_DECRYPTED, 1);
Is_Encrypted = true;
Is_Decrypted = true;
- LOGINFO("Setup_Data_Partition::Key_Directory::%s\n", Key_Directory.c_str());
if (Key_Directory.empty()) {
Is_FBE = false;
DataManager::SetValue(TW_IS_FBE, 0);
} else {
+ LOGINFO("Setup_Data_Partition::Key_Directory::%s\n", Key_Directory.c_str());
Is_FBE = true;
DataManager::SetValue(TW_IS_FBE, 1);
}