aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-02-24 19:16:42 +0100
committerpespin <pespin@sysmocom.de>2021-02-25 10:40:31 +0000
commite75fa1e2ec0211312af68ae0f1001a7034d911b7 (patch)
tree5d4ff0f541cacbd3b77f2fad7d66b21fb95622db /tests
parent43abde1b3afd791528cf33eee9fabe8410245962 (diff)
tests/gb: Fix printf format errors on ARM 32 bitsHEADmaster
Seen building on RPI4 32 bits raspbian: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=] Change-Id: I62199bfc7f3a78403334f5580f31fa5743223c9b
Diffstat (limited to 'tests')
-rw-r--r--tests/gb/gprs_bssgp_rim_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/gb/gprs_bssgp_rim_test.c b/tests/gb/gprs_bssgp_rim_test.c
index d08421b1..e2d4f661 100644
--- a/tests/gb/gprs_bssgp_rim_test.c
+++ b/tests/gb/gprs_bssgp_rim_test.c
@@ -190,7 +190,7 @@ void dump_bssgp_ran_inf_req_rim_cont(struct bssgp_ran_inf_req_rim_cont *rim_cont
if (rim_cont->son_trans_app_id) {
printf(" son_trans_app_id: %s\n",
osmo_hexdump_nospc(rim_cont->son_trans_app_id, rim_cont->son_trans_app_id_len));
- printf(" son_trans_app_id_len: %lu\n", rim_cont->son_trans_app_id_len);
+ printf(" son_trans_app_id_len: %zu\n", rim_cont->son_trans_app_id_len);
}
}
@@ -272,7 +272,7 @@ static void dump_bssgp_app_err_cont_nacc(struct bssgp_app_err_cont_nacc *app_con
printf(" macc_cause = %02x\n", app_cont->nacc_cause);
if (app_cont->err_app_cont) {
printf(" err_app_cont: %s\n", osmo_hexdump_nospc(app_cont->err_app_cont, app_cont->err_app_cont_len));
- printf(" err_app_cont_len: %lu\n", app_cont->err_app_cont_len);
+ printf(" err_app_cont_len: %zu\n", app_cont->err_app_cont_len);
}
}
@@ -317,7 +317,7 @@ static void dump_bssgp_ran_inf_rim_cont(struct bssgp_ran_inf_rim_cont *rim_cont)
if (rim_cont->son_trans_app_id) {
printf(" son_trans_app_id: %s\n",
osmo_hexdump_nospc(rim_cont->son_trans_app_id, rim_cont->son_trans_app_id_len));
- printf(" son_trans_app_id_len: %lu\n", rim_cont->son_trans_app_id_len);
+ printf(" son_trans_app_id_len: %zu\n", rim_cont->son_trans_app_id_len);
}
}
@@ -454,7 +454,7 @@ static void dump_bssgp_ran_inf_ack_rim_cont(struct bssgp_ran_inf_ack_rim_cont *r
if (rim_cont->son_trans_app_id) {
printf(" son_trans_app_id: %s\n",
osmo_hexdump_nospc(rim_cont->son_trans_app_id, rim_cont->son_trans_app_id_len));
- printf(" son_trans_app_id_len: %lu\n", rim_cont->son_trans_app_id_len);
+ printf(" son_trans_app_id_len: %zu\n", rim_cont->son_trans_app_id_len);
}
}
@@ -504,12 +504,12 @@ void dump_bssgp_ran_inf_err_rim_cont(struct bssgp_ran_inf_err_rim_cont *rim_cont
printf(" prot_ver = %u\n", rim_cont->prot_ver);
if (rim_cont->err_pdu) {
printf(" err_pdu: %s\n", osmo_hexdump_nospc(rim_cont->err_pdu, rim_cont->err_pdu_len));
- printf(" err_pdu_len: %lu\n", rim_cont->err_pdu_len);
+ printf(" err_pdu_len: %zu\n", rim_cont->err_pdu_len);
}
if (rim_cont->son_trans_app_id) {
printf(" son_trans_app_id: %s\n",
osmo_hexdump_nospc(rim_cont->son_trans_app_id, rim_cont->son_trans_app_id_len));
- printf(" son_trans_app_id_len: %lu\n", rim_cont->son_trans_app_id_len);
+ printf(" son_trans_app_id_len: %zu\n", rim_cont->son_trans_app_id_len);
}
}