diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-23 11:55:23 -0400 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-23 17:01:09 -0400 |
commit | 8e6ecc96677a4353768296ce79d9fc52ad6ca6e1 (patch) | |
tree | 3ad9ea46c291b39c5c5a88a9d2d19ef9b7e89e90 /openbsc/src/gprs | |
parent | adc17268fc40a63ebaf2bbbdf3109fc66638c9ae (diff) |
misc: Fix warnings about size of size_t in printf
Fixes warnings like:
warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat]
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r-- | openbsc/src/gprs/gprs_gsup_messages.c | 2 | ||||
-rw-r--r-- | openbsc/src/gprs/gprs_subscriber.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/openbsc/src/gprs/gprs_gsup_messages.c b/openbsc/src/gprs/gprs_gsup_messages.c index 8996fe2bf..9d9b6be20 100644 --- a/openbsc/src/gprs/gprs_gsup_messages.c +++ b/openbsc/src/gprs/gprs_gsup_messages.c @@ -153,7 +153,7 @@ static int decode_auth_info(uint8_t *data, size_t data_len, parse_error: LOGP(DGPRS, LOGL_ERROR, - "GSUP IE type %d, length %d invalid in PDP info\n", iei, value_len); + "GSUP IE type %d, length %zu invalid in PDP info\n", iei, value_len); return -1; } diff --git a/openbsc/src/gprs/gprs_subscriber.c b/openbsc/src/gprs/gprs_subscriber.c index e3da0f88f..60f223a0b 100644 --- a/openbsc/src/gprs/gprs_subscriber.c +++ b/openbsc/src/gprs/gprs_subscriber.c @@ -197,7 +197,7 @@ static int gprs_subscr_handle_gsup_auth_res(struct gsm_subscriber *subscr, struct sgsn_subscriber_data *sdata = subscr->sgsn_data; LOGGSUBSCRP(LOGL_INFO, subscr, - "Got SendAuthenticationInfoResult, num_auth_tuples = %d\n", + "Got SendAuthenticationInfoResult, num_auth_tuples = %zu\n", gsup_msg->num_auth_tuples); if (gsup_msg->num_auth_tuples > 0) { @@ -210,10 +210,10 @@ static int gprs_subscr_handle_gsup_auth_res(struct gsm_subscriber *subscr, for (idx = 0; idx < gsup_msg->num_auth_tuples; idx++) { size_t key_seq = gsup_msg->auth_tuples[idx].key_seq; LOGGSUBSCRP(LOGL_DEBUG, subscr, - "Adding auth tuple, cksn = %d\n", key_seq); + "Adding auth tuple, cksn = %zu\n", key_seq); if (key_seq >= ARRAY_SIZE(sdata->auth_triplets)) { LOGGSUBSCRP(LOGL_NOTICE, subscr, - "Skipping auth triplet with invalid cksn %d\n", + "Skipping auth triplet with invalid cksn %zu\n", key_seq); continue; } @@ -275,14 +275,14 @@ static void gprs_subscr_gsup_insert_data(struct gsm_subscriber *subscr, if (pdp_info->apn_enc_len >= sizeof(pdp_data->apn_str)-1) { LOGGSUBSCRP(LOGL_ERROR, subscr, - "APN too long, context id = %d, APN = %s\n", + "APN too long, context id = %zu, APN = %s\n", ctx_id, osmo_hexdump(pdp_info->apn_enc, pdp_info->apn_enc_len)); continue; } LOGGSUBSCRP(LOGL_INFO, subscr, - "Will set PDP info, context id = %d, APN = %s\n", + "Will set PDP info, context id = %zu, APN = %s\n", ctx_id, osmo_hexdump(pdp_info->apn_enc, pdp_info->apn_enc_len)); /* Set PDP info [ctx_id] */ |