{
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);
{
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;
}
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);
}
else
{
- DEBUG_MSG("FILE: %s, LINE:%d, Allocation is failed", filename, line);
+ SECURE_LOGD("FILE: %s, LINE:%d, Allocation is failed", filename, line);
}
}
#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
/* 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);
/* 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);
/* 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");