From 9e7b2689f913f7dc403385f669dd4d6e3a946a39 Mon Sep 17 00:00:00 2001 From: s414kim Date: Tue, 31 Oct 2017 17:28:07 +0900 Subject: [PATCH] Add dlog for app control data Change-Id: I4f1cabd08f1ac1411f613bb870d14f6909ade404 Signed-off-by: s414kim --- ode/src/interface/tools/encryption.cpp | 3 +++ ode/src/interface/tools/encryption.h | 1 + ode/src/ode.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/ode/src/interface/tools/encryption.cpp b/ode/src/interface/tools/encryption.cpp index dada78e..877b304 100644 --- a/ode/src/interface/tools/encryption.cpp +++ b/ode/src/interface/tools/encryption.cpp @@ -110,6 +110,7 @@ ExtensionEncryption::~ExtensionEncryption() int ExtensionEncryption::format(const std::string &device, const std::string &pwd) { int ret = 0; + dlog_print(DLOG_INFO, "ODE-UI", "[luks format] dev_path : %s", device.c_str()); ret = ::ode_luks_format(device.c_str(), pwd.c_str()); return ret; } @@ -117,11 +118,13 @@ int ExtensionEncryption::format(const std::string &device, const std::string &pw int ExtensionEncryption::mount(const std::string &device, const std::string &pwd, const std::string &node) { int ret = 0; + dlog_print(DLOG_INFO, "ODE-UI", "[luks open] dev_path : %s / node : %s", device.c_str(), node.c_str()); ret = ::ode_luks_open(device.c_str(), pwd.c_str(), node.c_str()); return ret; } void ExtensionEncryption::umount(const std::string &node) { + dlog_print(DLOG_INFO, "ODE-UI", "[luks close] node : %s", node.c_str()); ::ode_luks_close(node.c_str()); } diff --git a/ode/src/interface/tools/encryption.h b/ode/src/interface/tools/encryption.h index 4571766..da6a795 100644 --- a/ode/src/interface/tools/encryption.h +++ b/ode/src/interface/tools/encryption.h @@ -20,6 +20,7 @@ #define __ODE_ENCRYPTION_H__ #include +#include #include #include #include diff --git a/ode/src/ode.cpp b/ode/src/ode.cpp index 449fddf..d9a632c 100644 --- a/ode/src/ode.cpp +++ b/ode/src/ode.cpp @@ -74,9 +74,11 @@ void ODELaunchPad::onAppControl() interface = new PasswordSDCard{}; break; case Type::ENCRYPT_EXTENSION: + dlog_print(DLOG_INFO, "ODE-UI", "Device Path : %s / Mapping Node : %s", appControl->getData("dev_path").c_str(), appControl->getData("mapping_node").c_str()); interface = new EncryptExtensionInterface{appControl.get()}; break; case Type::SD_CARD_EXTENDED_PASSWORD: + dlog_print(DLOG_INFO, "ODE-UI", "Device Path : %s / Mapping Node : %s", appControl->getData("dev_path").c_str(), appControl->getData("mapping_node").c_str()); interface = new PasswordSDCardExtended{appControl->getData("dev_path"), appControl->getData("mapping_node")}; break; default: -- 2.34.1