diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-04 20:22:27 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-04 20:22:27 +0200 |
commit | 81cff91ec0ccb54fca5ff21d9287cfc8d12ae5dd (patch) | |
tree | 1e4aa875c86de0522d777a42cd6e09e3f3c91e65 | |
parent | 7b76934f033bd1839d3ed56987441b1b80698a63 (diff) |
gsm_subscriber: Fix compiler warning of the printf string
This fixes both a GCC and a Coverity warning:
GCC:
gsm_subscriber.c: In function ‘subscr_expire_callback’:
gsm_subscriber.c:389:2: warning: format ‘%i’ expects argument of type ‘int’, but argument 8 has type ‘long long unsigned int’ [-Wformat]
Coverity:
CID 1040712
-rw-r--r-- | openbsc/src/libmsc/gsm_subscriber.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/gsm_subscriber.c b/openbsc/src/libmsc/gsm_subscriber.c index 3e65176b1..7ff44075c 100644 --- a/openbsc/src/libmsc/gsm_subscriber.c +++ b/openbsc/src/libmsc/gsm_subscriber.c @@ -386,7 +386,7 @@ static void subscr_expire_callback(void *data, long long unsigned int id) struct gsm_subscriber *s = subscr_get_by_id(net, id); - LOGP(DMM, LOGL_NOTICE, "Expiring inactive subscriber %s (ID %i)\n", + LOGP(DMM, LOGL_NOTICE, "Expiring inactive subscriber %s (ID %llu)\n", subscr_name(s), id); s->lac = GSM_LAC_RESERVED_DETACHED; db_sync_subscriber(s); |