[Request] apply secure log 72/10272/2
authorlong8691.he <long8691.he@samsung.com>
Wed, 22 May 2013 08:13:22 +0000 (16:13 +0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 26 Sep 2013 06:15:55 +0000 (23:15 -0700)
Change-Id: I4ab3dca836aa399e106303fea55ad46e32c56034

src/oem/oem_emul.c

index 51a418caa4c83e19baacb6983743ed45709f61cc..d8b4c498acd49d60255bb8ab52ee2e9db891eaa8 100644 (file)
@@ -304,7 +304,7 @@ void __nfc_emul_util_free_mem (void** mem, char * filename, unsigned int line)
 {
        if (mem == NULL || *mem == NULL)
        {
-               DEBUG_MSG ("FILE: %s, LINE:%d, Invalid parameter in mem free util (pinter is NULL)", filename, line);
+               SECURE_LOGD ("FILE: %s, LINE:%d, Invalid parameter in mem free util (pinter is NULL)", filename, line);
                return;
        }
        free(*mem);
@@ -315,7 +315,7 @@ void __nfc_emul_util_alloc_mem(void** mem, int size, char * filename, unsigned i
 {
        if (mem == NULL || size <= 0)
        {
-               DEBUG_MSG ("FILE: %s, LINE:%d, Invalid parameter in mem alloc util", filename, line);
+               SECURE_LOGD ("FILE: %s, LINE:%d, Invalid parameter in mem alloc util", filename, line);
                return;
        }
 
@@ -323,7 +323,7 @@ void __nfc_emul_util_alloc_mem(void** mem, int size, char * filename, unsigned i
 
        if (*mem != NULL)
        {
-               DEBUG_MSG("FILE: %s, LINE:%d, WARNING: Pointer is already allocated or it was not initialized with NULL", filename, line);
+               SECURE_LOGD("FILE: %s, LINE:%d, WARNING: Pointer is already allocated or it was not initialized with NULL", filename, line);
        }
 
        *mem = malloc (size);
@@ -334,7 +334,7 @@ void __nfc_emul_util_alloc_mem(void** mem, int size, char * filename, unsigned i
        }
        else
        {
-               DEBUG_MSG("FILE: %s, LINE:%d, Allocation is failed", filename, line);
+               SECURE_LOGD("FILE: %s, LINE:%d, Allocation is failed", filename, line);
        }
 }
 
@@ -759,8 +759,8 @@ static int _net_nfc_create_records_from_emulMsg(ndef_message_s **ndef_message, i
 #ifndef __EMUL_DEBUG__
                DEBUG_ERR_MSG("RECORD DATA START >>>>>>>>>>>>>>>>>>>>>>>>");
                DEBUG_MSG("TNF >>>>[%d]", record.tnf);
-               DEBUG_MSG("type_name >>>>[%s]", type_name);
-               DEBUG_MSG("record_id >>>>[%s]", record_id);
+               SECURE_LOGD("type_name >>>>[%s]", type_name);
+               SECURE_LOGD("record_id >>>>[%s]", record_id);
                DEBUG_MSG("record_payload >>>>[%s]", record_payload);
                DEBUG_ERR_MSG("RECORD DATA END >>>>>>>>>>>>>>>>>>>>>>>>");
 #endif
@@ -1511,7 +1511,7 @@ static void emul_ReaderThread(void * pArg)
 
        /* make file name */
        snprintf(file_name, sizeof(file_name), "%s/%s", NET_NFC_EMUL_DATA_PATH, NET_NFC_EMUL_MESSAGE_FILE_NAME );
-       DEBUG_MSG("file path : %s", file_name);
+       SECURE_LOGD("file path : %s", file_name);
 
        /* open file for poll */
        emulMsg_file_fd = open(file_name, O_RDONLY|O_NONBLOCK);
@@ -1639,7 +1639,7 @@ static void emul_ReaderThread(void * pArg)
 
        /* make file name */
        snprintf(file_name, sizeof(file_name), "%s/%s", NET_NFC_EMUL_DATA_PATH, NET_NFC_EMUL_MESSAGE_FILE_NAME );
-       DEBUG_MSG("file path : %s", file_name);
+       SECURE_LOGD("file path : %s", file_name);
 
        time(&curTime);
        DEBUG_MSG("Start Current Time [%ld]", (unsigned long) curTime);
@@ -1739,7 +1739,7 @@ static bool _net_nfc_emul_controller_create_interfaceFile (void)
 
        /* create file */
        snprintf(file_name, sizeof(file_name), "%s/%s", NET_NFC_EMUL_DATA_PATH, NET_NFC_EMUL_MESSAGE_FILE_NAME );
-       DEBUG_MSG("file path : %s", file_name);
+       SECURE_LOGD("file path : %s", file_name);
 
        if (stat(file_name, &st) == 0) {
                DEBUG_MSG("file is already created");