[layer23] Disabled display of SYSINFO message at message handlers

This way the SYSINFO is logged once and not three times.
This commit is contained in:
Andreas.Eversberg 2010-09-29 13:29:31 +00:00
parent 6d2625ce0c
commit 0da908f3f1
2 changed files with 11 additions and 8 deletions

View File

@ -3334,9 +3334,10 @@ int gsm322_c_event(struct osmocom_ms *ms, struct msgb *msg)
int rc;
int i;
LOGP(DCS, LOGL_INFO, "(ms %s) Event '%s' for Cell selection in state "
"'%s'\n", ms->name, get_event_name(msg_type),
cs_state_names[cs->state]);
if (msg_type != GSM322_EVENT_SYSINFO)
LOGP(DCS, LOGL_INFO, "(ms %s) Event '%s' for Cell selection "
"in state '%s'\n", ms->name, get_event_name(msg_type),
cs_state_names[cs->state]);
/* find function for current state and message */
for (i = 0; i < CELLSELSLLEN; i++)
if ((msg_type == cellselstatelist[i].type)

View File

@ -4065,11 +4065,13 @@ static int gsm48_mm_ev(struct osmocom_ms *ms, int msg_type, struct msgb *msg)
struct gsm48_mmlayer *mm = &ms->mmlayer;
int i, rc;
if (mm->state == GSM48_MM_ST_MM_IDLE)
LOGP(DMM, LOGL_INFO, "(ms %s) Received '%s' event in state "
"MM IDLE, %s\n", ms->name, get_mmevent_name(msg_type),
gsm48_mm_substate_names[mm->substate]);
else
if (mm->state == GSM48_MM_ST_MM_IDLE) {
if (msg_type != GSM48_MM_EVENT_SYSINFO)
LOGP(DMM, LOGL_INFO, "(ms %s) Received '%s' event in "
"state MM IDLE, %s\n", ms->name,
get_mmevent_name(msg_type),
gsm48_mm_substate_names[mm->substate]);
} else
LOGP(DMM, LOGL_INFO, "(ms %s) Received '%s' event in state "
"%s\n", ms->name, get_mmevent_name(msg_type),
gsm48_mm_state_names[mm->state]);