summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-06-13 10:14:51 +0900
committerSung-jae Park <nicesj.park@samsung.com>2013-06-13 10:26:12 +0900
commita92a64915a1bc0f00c2bf9567f14ade953e18351 (patch)
tree2712fb897a47580f7180bb4a89c76056cd9973ca /lib
parentae990470960ae42b86fcc41807e56f3904016aab (diff)
downloadshortcut-a92a64915a1bc0f00c2bf9567f14ade953e18351.tar.gz
shortcut-a92a64915a1bc0f00c2bf9567f14ade953e18351.tar.bz2
shortcut-a92a64915a1bc0f00c2bf9567f14ade953e18351.zip
Use the secure_dlog
[model] Tizen [binary_type] AP [customer] Tizen Developer [issue#] N/A [problem] Secured data should not be printed as a log [cause] Security enhancement [solution] Use the secure_dlog instead of dlog [team] HomeTF [request] [horizontal_expansion] Change-Id: I1af54d083a117166aa1e5fa830f43db198dd338f
Diffstat (limited to 'lib')
-rw-r--r--lib/include/shortcut_internal.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/include/shortcut_internal.h b/lib/include/shortcut_internal.h
index 5009ba2..fca2204 100644
--- a/lib/include/shortcut_internal.h
+++ b/lib/include/shortcut_internal.h
@@ -15,9 +15,21 @@
*
*/
+#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
+
#if !defined(FLOG)
-#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)
+#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)
#else
extern FILE *__file_log_fp;
#define DbgPrint(format, arg...) do { fprintf(__file_log_fp, "[LOG] [%s/%s:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg); fflush(__file_log_fp); } while (0)