From 5375fcb6bc6c9b7ff83434019bbc9337ab6744e4 Mon Sep 17 00:00:00 2001 From: Sunwook Bae Date: Wed, 17 Apr 2013 21:42:14 +0900 Subject: [PATCH] Apply secure logs Change-Id: Ie6904a333c8f0bb29290d65a49635f5037182a82 Signed-off-by: Sunwook Bae --- src/MessagePortProxy.cpp | 4 ++-- src/message-port-log.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/MessagePortProxy.cpp b/src/MessagePortProxy.cpp index f9fd6d7..c0b854d 100644 --- a/src/MessagePortProxy.cpp +++ b/src/MessagePortProxy.cpp @@ -554,7 +554,7 @@ MessagePortProxy::OnSendMessageInternal(const BundleBuffer& metadata, const Bund string messageType = bundle_get_val(b, MESSAGE_TYPE); - _LOGD("Message received to AppId: %s, Port: %s, Trusted: %s", pRemoteAppId, pRemotePort, trustedMessage.c_str()); + _LOGD("Message received to App: %s, Port: %s, Trusted: %s", pRemoteAppId, pRemotePort, trustedMessage.c_str()); int id = 0; messageport_message_cb callback; @@ -583,7 +583,7 @@ MessagePortProxy::OnSendMessageInternal(const BundleBuffer& metadata, const Bund string localPort = bundle_get_val(b, LOCAL_PORT); string trustedLocal = bundle_get_val(b, TRUSTED_LOCAL); - _LOGD("From AppId: %s, Port: %s, TrustedLocal: %s", localAppId.c_str(), localPort.c_str(), trustedLocal.c_str()); + _LOGD("From App: %s, Port: %s, TrustedLocal: %s", localAppId.c_str(), localPort.c_str(), trustedLocal.c_str()); bool trustedPort = (trustedLocal.compare("TRUE") == 0); diff --git a/src/message-port-log.h b/src/message-port-log.h index d2d1678..15dc711 100644 --- a/src/message-port-log.h +++ b/src/message-port-log.h @@ -32,6 +32,9 @@ extern "C" { #define _LOGE(fmt, arg...) LOGE(fmt, ##arg) #define _LOGD(fmt, arg...) LOGD(fmt, ##arg) +#define _SECURE_LOGE(fmt, arg...) SECURE_LOGE(fmt, ##arg) +#define _SECURE_LOGD(fmt, arg...) SECURE_LOGD(fmt, ##arg) + /** * @} */ -- 2.7.4