summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-06-13 10:07:29 +0900
committerSung-jae Park <nicesj.park@samsung.com>2013-06-13 10:23:33 +0900
commit2fc303a1eb3b1a9b6be18be15107e92eab738f53 (patch)
tree7aa022cc127559071a51aebe5a2d1bac196e0ef3
parent4571ddae70eceb369f37bdaeb219679bd6c3d3ad (diff)
downloadlivebox-cpp-2fc303a1eb3b1a9b6be18be15107e92eab738f53.tar.gz
livebox-cpp-2fc303a1eb3b1a9b6be18be15107e92eab738f53.tar.bz2
livebox-cpp-2fc303a1eb3b1a9b6be18be15107e92eab738f53.zip
Apply secure_dlog
[model] Tizen [binary_type] AP [customer] Tizen Developer [issue#] N/A [problem] Important data should not be printed as log. [cause] Security enhancement. [solution] Using secure dlog [team] HomeTF [request] [horizontal_expansion] Change-Id: I9b4f4f330b758178132f6f55d851d7dc660562cc
-rw-r--r--include/debug.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/debug.h b/include/debug.h
index 5904b4c..7583ba9 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -14,6 +14,18 @@
* limitations under the License.
*/
-#define DbgPrint(format, arg...) LOGD("[%s/%s:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg)
-#define ErrPrint(format, arg...) LOGE("[%s/%s:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg)
+#if !defined(SECURE_LOGD)
+#define SECURE_LOGD LOGD
+#endif
+
+#if !defined(SECURE_LOGE)
+#define SECURE_LOGE LOGE
+#endif
+
+#if !defined(SECURE_LOGW)
+#define SECURE_LOGW LOGW
+#endif
+
+#define DbgPrint(format, arg...) SECURE_LOGD("[%s/%s:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg)
+#define ErrPrint(format, arg...) SECURE_LOGE("[%s/%s:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg)
/* End of a file */