From 52ffb922c440c8d0d0b473f43908c4679cf3de6e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 29 Dec 2010 14:02:34 +0100 Subject: [PATCH] sms: Improve the logging of the paging callback. --- openbsc/src/gsm_04_11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index db445ae00..fc9b0862c 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c @@ -1131,7 +1131,7 @@ static int paging_cb_send_sms(unsigned int hooknum, unsigned int event, int rc = 0; DEBUGP(DSMS, "paging_cb_send_sms(hooknum=%u, event=%u, msg=%p," - "conn=%p, sms=%p)\n", hooknum, event, msg, conn, sms); + "conn=%p, sms=%p/id: %llu)\n", hooknum, event, msg, conn, sms, sms->id); if (hooknum != GSM_HOOK_RR_PAGING) return -EINVAL; @@ -1147,6 +1147,8 @@ static int paging_cb_send_sms(unsigned int hooknum, unsigned int event, sms_free(sms); rc = -ETIMEDOUT; break; + default: + LOGP(DSMS, LOGL_ERROR, "Unhandled paging event: %d\n", event); } return rc;