diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-03-20 20:22:03 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-03-20 20:23:04 +0100 |
commit | ca74126d5413505a1eb2a7cc23be17fca4b1492f (patch) | |
tree | f12fcb2181c97f7a8f26a967ab3bc2c5a52074dc /src | |
parent | 4ab00db8686729395878b5ffa3ab10b71d983b48 (diff) |
tests/test-ranap.c: Fix wrong printf format
Caught by compiler:
test-ranap.c:54:30: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘RANAP_MaxBitrate_t’ {aka ‘long int’} [-Wformat=]
test-ranap.c:78:30: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘RANAP_CauseMisc_t’ {aka ‘long int’} [-Wformat=]
Change-Id: Icc4e81beaa35e13aea3adfed983016c78b730061
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/test-ranap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test-ranap.c b/src/tests/test-ranap.c index 05be874..423f992 100644 --- a/src/tests/test-ranap.c +++ b/src/tests/test-ranap.c @@ -51,7 +51,7 @@ static void test_aper_int(uint32_t inp) fprintf(stderr, "Failed\n"); return; } - printf("Encoded MaxBitRate %u to %s\n", mbr, osmo_hexdump(buf, rv.encoded/8)); + printf("Encoded MaxBitRate %ld to %s\n", mbr, osmo_hexdump(buf, rv.encoded/8)); } static void test_aper_causemisc(uint32_t inp, uint8_t exp_enc) @@ -75,7 +75,7 @@ static void test_aper_causemisc(uint32_t inp, uint8_t exp_enc) /* test re-decoding */ aper_decode(NULL, &asn_DEF_RANAP_Cause, &c_dec, buf, 1, 0, 0); - printf("Decoded Cause Misc=%u\n", c_dec->choice.misc); + printf("Decoded Cause Misc=%ld\n", c_dec->choice.misc); OSMO_ASSERT(c_dec->present == RANAP_Cause_PR_misc); OSMO_ASSERT(c_dec->choice.misc == inp); ASN_STRUCT_FREE(asn_DEF_RANAP_Cause, c_dec); |