Commit 3e77251f authored by Cedric Roux's avatar Cedric Roux

minor: add a message before aborting

The case instance == INSTANCE_DEFAULT should normally not happen,
but let's be a bit verbose if it does.
parent e400b5e7
...@@ -150,7 +150,11 @@ void *nas_ue_task(void *args_p) ...@@ -150,7 +150,11 @@ void *nas_ue_task(void *args_p)
msg_name = ITTI_MSG_NAME (msg_p); msg_name = ITTI_MSG_NAME (msg_p);
instance = ITTI_MSG_INSTANCE (msg_p); instance = ITTI_MSG_INSTANCE (msg_p);
Mod_id = instance - NB_eNB_INST; Mod_id = instance - NB_eNB_INST;
if (instance == INSTANCE_DEFAULT) abort(); if (instance == INSTANCE_DEFAULT) {
printf("%s:%d: FATAL: instance is INSTANCE_DEFAULT, should not happen.\n",
__FILE__, __LINE__);
abort();
}
nas_user_t *user = &users->item[Mod_id]; nas_user_t *user = &users->item[Mod_id];
switch (ITTI_MSG_ID(msg_p)) { switch (ITTI_MSG_ID(msg_p)) {
......
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