Apply Secure Log
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 3 Jun 2013 05:55:08 +0000 (14:55 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 3 Jun 2013 05:55:08 +0000 (14:55 +0900)
[model] Redwood
[binary_type] AP
[customer] Docomo/Orange/Open
[issue#] N/A
[problem] Secure Log is not applied
[cause] N/A
[solution] Apply Secure Log
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I81b72926a36533b3fd942450f3dbaaa2de555afc

include/debug.h
src/conf.c

index 7ec29a5..e3fcd2a 100644 (file)
  * limitations under the License.
  */
 
-#define DbgPrint(format, arg...) LOGD("[\e[32m%s/%s\e[0m:%d] " format, util_basename(__FILE__), __func__, __LINE__, ##arg)
+#define DbgPrint(format, arg...) SECURE_LOGD("[\e[32m%s/%s\e[0m:%d] " format, util_basename(__FILE__), __func__, __LINE__, ##arg)
 
-#define ErrPrint(format, arg...) LOGE("[\e[32m%s/%s\e[0m:%d] \e[33m" format "\e[0m", util_basename(__FILE__), __func__, __LINE__, ##arg)
+#define ErrPrint(format, arg...) SECURE_LOGE("[\e[32m%s/%s\e[0m:%d] \e[33m" format "\e[0m", util_basename(__FILE__), __func__, __LINE__, ##arg)
 
-#define WarnPrint(format, arg...) LOGW("[\e[32m%s/%s\e[0m:%d] \e[34m" format "\e[0m", util_basename(__FILE__), __func__, __LINE__, ##arg)
+#define WarnPrint(format, arg...) SECURE_LOGW("[\e[32m%s/%s\e[0m:%d] \e[34m" format "\e[0m", util_basename(__FILE__), __func__, __LINE__, ##arg)
 
 #define DbgFree(a) do { \
        free(a); \
index 4a7ad25..7fe3959 100644 (file)
@@ -508,7 +508,7 @@ HAPI int conf_loader(void)
        do {
                c = getc(fp);
                if ((c == EOF) && (state == VALUE)) {
-                       LOGD("[%s:%d] VALUE state EOF\n", __func__, __LINE__);
+                       DbgPrint("[%s:%d] VALUE state EOF\n", __func__, __LINE__);
                        state = END;
                }