X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=server%2Fengine%2Fencryption%2Fcryptsetup-engine.cpp;h=9c35f488c0f3aef5726fd6db035fc3b5a51cefac;hb=e865b8aa0855845c8b39af4abbd6a9cd4605b902;hp=d013d2fd5c3971e75ee667ccf82f90946d2096c7;hpb=90aec06f39f4f092ea738430cc2522f932ac3a26;p=platform%2Fcore%2Fsecurity%2Fode.git diff --git a/server/engine/encryption/cryptsetup-engine.cpp b/server/engine/encryption/cryptsetup-engine.cpp index d013d2f..9c35f48 100644 --- a/server/engine/encryption/cryptsetup-engine.cpp +++ b/server/engine/encryption/cryptsetup-engine.cpp @@ -16,6 +16,7 @@ #include "cryptsetup-engine.h" #include "../../file-footer.h" +#include "../../logger.h" #include #include @@ -23,7 +24,6 @@ #include #include -#include namespace ode { @@ -52,17 +52,17 @@ void log(int level, const char *msg, void*) switch (level) { case CRYPT_LOG_ERROR: - ERROR("[libcryptsetup] " + msgStr); + ERROR(SINK, "[libcryptsetup] " + msgStr); break; case CRYPT_LOG_VERBOSE: - INFO("[libcryptsetup] " + msgStr); + INFO(SINK, "[libcryptsetup] " + msgStr); break; case CRYPT_LOG_DEBUG: case CRYPT_LOG_NORMAL: - DEBUG("[libcryptsetup] " + msgStr); + DEBUG(SINK, "[libcryptsetup] " + msgStr); break; default: - ERROR("[libcryptsetup] Unsupported log level. Msg: " + msgStr); + ERROR(SINK, "[libcryptsetup] Unsupported log level. Msg: " + msgStr); } } #endif @@ -120,7 +120,7 @@ public: ~Device() { if (0 != crypt_memory_lock(device, 0)) - ERROR("Failed to unlock memory"); + ERROR(SINK, "Failed to unlock memory"); crypt_free(device); }