This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-iuh/+/17544 ) Change subject: tests/test-ranap.c: Fix wrong printf format ...................................................................... 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 --- M src/tests/test-ranap.c 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved 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 @@ 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 @@ /* 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); -- To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/17544 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-iuh Gerrit-Branch: master Gerrit-Change-Id: Icc4e81beaa35e13aea3adfed983016c78b730061 Gerrit-Change-Number: 17544 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200320/023532ee/attachment.htm>