Commit f6c2677a authored by winckel's avatar winckel

Renamed ERROR and WARNING message to avoid conflicts with enum value in openair-cn.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4425 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 9a077d29
......@@ -5,9 +5,9 @@ MESSAGE_DEF(TERMINATE_MESSAGE, MESSAGE_PRIORITY_MAX, struct {}, terminate_messa
MESSAGE_DEF(MESSAGE_TEST, MESSAGE_PRIORITY_MED, struct {}, message_test)
/* Error message */
MESSAGE_DEF(ERROR, MESSAGE_PRIORITY_MAX, struct {}, error)
MESSAGE_DEF(ERROR_LOG, MESSAGE_PRIORITY_MAX, struct {}, error_log)
/* Warning message */
MESSAGE_DEF(WARNING, MESSAGE_PRIORITY_MAX, struct {}, warning)
MESSAGE_DEF(WARNING_LOG, MESSAGE_PRIORITY_MAX, struct {}, warning_log)
/* Generic log message for text */
MESSAGE_DEF(GENERIC_LOG, MESSAGE_PRIORITY_MED, struct {}, generic_log)
......@@ -656,20 +656,20 @@ void logRecord_mt(const char *file, const char *func, int line, int comp,
if (level <= LOG_ERR)
{
messages_id = ERROR;
messages_id = ERROR_LOG;
}
else
{
messages_id = WARNING;
messages_id = WARNING_LOG;
}
message_p = itti_alloc_new_message_sized(TASK_UNKNOWN, messages_id, message_string_size);
if (level <= LOG_ERR)
{
message_msg_p = (char *) &message_p->msg.error;
message_msg_p = (char *) &message_p->msg.error_log;
}
else
{
message_msg_p = (char *) &message_p->msg.warning;
message_msg_p = (char *) &message_p->msg.warning_log;
}
memcpy(message_msg_p, log_start, message_string_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment