debug log fixes

gprs_gmm.c: remove extraneous debug print arg.
iu_cs.c: increment should not be in debug statement.

Fixes at least one coverity warning.
This commit is contained in:
Neels Hofmeyr
2016-03-21 11:55:49 +01:00
parent 182adecb98
commit 0bc6c11cbf
2 changed files with 3 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ int sgsn_ranap_iu_event(struct ue_conn_ctx *ctx, int type, void *data)
case IU_EVENT_IU_RELEASE:
mm->iu.integrity_active = 0;
/* Clean up ue_conn_ctx here */
LOGMMCTXP(LOGL_INFO, mm, "IU release\n", type);
LOGMMCTXP(LOGL_INFO, mm, "IU release\n");
break;
case IU_EVENT_SECURITY_MODE_COMPLETE:
/* Continue authentication here */

View File

@@ -44,7 +44,7 @@ static inline void log_subscribers(struct gsm_network *network)
struct gsm_subscriber_connection *conn;
int i = 0;
llist_for_each_entry(conn, &network->subscr_conns, entry) {
DEBUGP(DIUCS, "%3d: %s", i++, subscr_name(conn->subscr));
DEBUGP(DIUCS, "%3d: %s", i, subscr_name(conn->subscr));
switch (conn->via_iface) {
case IFACE_IU:
DEBUGPC(DIUCS, " Iu");
@@ -66,6 +66,7 @@ static inline void log_subscribers(struct gsm_network *network)
break;
}
DEBUGPC(DIUCS, "\n");
i++;
}
DEBUGP(DIUCS, "subscribers registered: %d\n", i);
}