lists.osmocom.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
List overview
Download
gerrit-log
July 2022
----- 2025 -----
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
gerrit-log@lists.osmocom.org
3 participants
2175 discussions
Start a n
N
ew thread
Change in osmo-cbc[master]: tests/sbcap: fix wrong operator used in OSMO_ASSERT statement
by fixeria
fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-cbc/+/28659
) Change subject: tests/sbcap: fix wrong operator used in OSMO_ASSERT statement ...................................................................... tests/sbcap: fix wrong operator used in OSMO_ASSERT statement Change-Id: I6fe9080302166ad9bdc305eab736d51496dd1ff8 Related: CID#274972 --- M tests/sbcap/sbcap_test.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-cbc refs/changes/59/28659/1 diff --git a/tests/sbcap/sbcap_test.c b/tests/sbcap/sbcap_test.c index 5c5a4b0..747d0b2 100644 --- a/tests/sbcap/sbcap_test.c +++ b/tests/sbcap/sbcap_test.c @@ -161,7 +161,7 @@ OSMO_ASSERT(rval.code == RC_OK); OSMO_ASSERT(pdu); - OSMO_ASSERT(pdu->present = SBcAP_SBC_AP_PDU_PR_successfulOutcome); + OSMO_ASSERT(pdu->present == SBcAP_SBC_AP_PDU_PR_successfulOutcome); OSMO_ASSERT(pdu->choice.successfulOutcome.procedureCode == SBcAP_ProcedureId_Write_Replace_Warning); OSMO_ASSERT(pdu->choice.successfulOutcome.criticality == SBcAP_Criticality_reject); -- To view, visit
https://gerrit.osmocom.org/c/osmo-cbc/+/28659
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc Gerrit-Branch: master Gerrit-Change-Id: I6fe9080302166ad9bdc305eab736d51496dd1ff8 Gerrit-Change-Number: 28659 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-MessageType: newchange
2 years, 11 months
1
0
0
0
Build failure of network:osmocom:nightly/libosmo-dsp in openSUSE_Tumbleweed/x86_64
by OBS Notification
Visit
https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/l…
Package network:osmocom:nightly/libosmo-dsp failed to build in openSUSE_Tumbleweed/x86_64 Check out the package for editing: osc checkout network:osmocom:nightly libosmo-dsp Last lines of build log: [ 80s] mktexlsr: Updating /usr/local/share/texmf... [ 80s] mktexlsr: Updating /usr/share/texmf... [ 80s] mktexlsr: Updating /var/cache/texmf/fonts... [ 80s] mktexlsr: Updating /var/cache/texmf/fonts/texmf... [ 80s] mktexlsr: Updating /var/lib/texmf... [ 80s] mktexlsr: Done. [ 80s] ... running 01-add_abuild_user_to_trusted_group [ 80s] ... running 02-set_timezone_to_utc [ 80s] ... running 03-set-permissions-secure [ 80s] ... running 11-hack_uname_version_to_kernel_version [ 81s] ----------------------------------------------------------------- [ 81s] I have the following modifications for libosmo-dsp.spec: [ 81s] 12c12 [ 81s] < Release: 0 [ 81s] --- [ 81s] > Release: 1.1 [ 81s] ----------------------------------------------------------------- [ 81s] ----- building libosmo-dsp.spec (user abuild) [ 81s] ----------------------------------------------------------------- [ 81s] ----------------------------------------------------------------- [ 81s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define '_build_create_debug 1' --define 'disturl
obs://build.opensuse.org/network:osmocom:nightly/openSUSE_Tumbleweed/29ba9c…
' /home/abuild/rpmbuild/SOURCES/libosmo-dsp.spec [ 81s] error: Bad source: /home/abuild/rpmbuild/SOURCES/HTML_TIMESTAMP.diff: No such file or directory [ 81s] ### VM INTERACTION START ### [ 81s] [ 68.133072][ T1] sysrq: Power Off [ 81s] [ 68.152021][ T149] reboot: Power down [ 81s] ### VM INTERACTION END ### [ 81s] [ 81s] goat01 failed "build libosmo-dsp.spec" at Tue Jul 19 19:26:51 UTC 2022. [ 81s] -- Configure notifications at
https://build.opensuse.org/my/subscriptions
openSUSE Build Service (
https://build.opensuse.org/
)
2 years, 11 months
1
0
0
0
Build failure of network:osmocom:nightly/libosmo-dsp in openSUSE_Tumbleweed/i586
by OBS Notification
Visit
https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/l…
Package network:osmocom:nightly/libosmo-dsp failed to build in openSUSE_Tumbleweed/i586 Check out the package for editing: osc checkout network:osmocom:nightly libosmo-dsp Last lines of build log: [ 232s] mktexlsr: Updating /usr/local/share/texmf... [ 232s] mktexlsr: Updating /usr/share/texmf... [ 232s] mktexlsr: Updating /var/cache/texmf/fonts... [ 232s] mktexlsr: Updating /var/cache/texmf/fonts/texmf... [ 232s] mktexlsr: Updating /var/lib/texmf... [ 232s] mktexlsr: Done. [ 232s] ... running 01-add_abuild_user_to_trusted_group [ 232s] ... running 02-set_timezone_to_utc [ 232s] ... running 03-set-permissions-secure [ 232s] ... running 11-hack_uname_version_to_kernel_version [ 234s] ----------------------------------------------------------------- [ 234s] I have the following modifications for libosmo-dsp.spec: [ 234s] 12c12 [ 234s] < Release: 0 [ 234s] --- [ 234s] > Release: 1.1 [ 234s] ----------------------------------------------------------------- [ 234s] ----- building libosmo-dsp.spec (user abuild) [ 234s] ----------------------------------------------------------------- [ 234s] ----------------------------------------------------------------- [ 234s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define '_build_create_debug 1' --define 'disturl
obs://build.opensuse.org/network:osmocom:nightly/openSUSE_Tumbleweed/29ba9c…
' /home/abuild/rpmbuild/SOURCES/libosmo-dsp.spec [ 234s] error: Bad source: /home/abuild/rpmbuild/SOURCES/HTML_TIMESTAMP.diff: No such file or directory [ 234s] ### VM INTERACTION START ### [ 235s] [ 217.553828][ T1] sysrq: Power Off [ 235s] [ 217.564284][ T18] reboot: Power down [ 235s] ### VM INTERACTION END ### [ 235s] [ 235s] lamb58 failed "build libosmo-dsp.spec" at Tue Jul 19 18:52:45 UTC 2022. [ 235s] -- Configure notifications at
https://build.opensuse.org/my/subscriptions
openSUSE Build Service (
https://build.opensuse.org/
)
2 years, 11 months
1
0
0
0
Build failure of network:osmocom:nightly/libosmo-dsp in openSUSE_Factory_ARM/aarch64
by OBS Notification
Visit
https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/l…
Package network:osmocom:nightly/libosmo-dsp failed to build in openSUSE_Factory_ARM/aarch64 Check out the package for editing: osc checkout network:osmocom:nightly libosmo-dsp Last lines of build log: [ 581s] mktexlsr: Updating /usr/local/share/texmf... [ 581s] mktexlsr: Updating /usr/share/texmf... [ 581s] mktexlsr: Updating /var/cache/texmf/fonts... [ 581s] mktexlsr: Updating /var/cache/texmf/fonts/texmf... [ 581s] mktexlsr: Updating /var/lib/texmf... [ 581s] mktexlsr: Done. [ 581s] ... running 01-add_abuild_user_to_trusted_group [ 581s] ... running 02-set_timezone_to_utc [ 581s] ... running 03-set-permissions-secure [ 581s] ... running 11-hack_uname_version_to_kernel_version [ 591s] ----------------------------------------------------------------- [ 591s] I have the following modifications for libosmo-dsp.spec: [ 591s] 12c12 [ 591s] < Release: 0 [ 591s] --- [ 591s] > Release: 1.1 [ 591s] ----------------------------------------------------------------- [ 591s] ----- building libosmo-dsp.spec (user abuild) [ 591s] ----------------------------------------------------------------- [ 591s] ----------------------------------------------------------------- [ 594s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define '_build_create_debug 1' --define 'disturl
obs://build.opensuse.org/network:osmocom:nightly/openSUSE_Factory_ARM/29ba9…
' /home/abuild/rpmbuild/SOURCES/libosmo-dsp.spec [ 594s] error: Bad source: /home/abuild/rpmbuild/SOURCES/HTML_TIMESTAMP.diff: No such file or directory [ 594s] ### VM INTERACTION START ### [ 595s] [ 549.705300][ T1] sysrq: Power Off [ 595s] [ 549.740004][ T16] reboot: Power down [ 595s] ### VM INTERACTION END ### [ 595s] [ 595s] obs-arm-2 failed "build libosmo-dsp.spec" at Tue Jul 19 18:38:25 UTC 2022. [ 595s] -- Configure notifications at
https://build.opensuse.org/my/subscriptions
openSUSE Build Service (
https://build.opensuse.org/
)
2 years, 11 months
1
0
0
0
Change in osmo-cbc[master]: sbcap: Update asn1c skeleton files
by pespin
pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmo-cbc/+/28658
) Change subject: sbcap: Update asn1c skeleton files ...................................................................... sbcap: Update asn1c skeleton files Update skeleton files using newest asn1c with APER support [1], commit eb4cd0c2a891a7dbfe90b4cb8cca545879b6d622. This contains APER fixes for 32bit architectures. [1]
https://github.com/mouse07410/asn1c/tree/vlm_master/
Change-Id: I9ca556dec639223a8d37badb908fab254826192e --- M src/sbcap/gen/INTEGER_aper.c M src/sbcap/gen/NativeEnumerated_aper.c M src/sbcap/gen/OCTET_STRING_aper.c M src/sbcap/gen/aper_opentype.c M src/sbcap/gen/aper_support.c M src/sbcap/gen/constr_CHOICE_aper.c M src/sbcap/gen/constr_SEQUENCE_OF_aper.c M src/sbcap/gen/constr_SEQUENCE_aper.c M src/sbcap/gen/constr_SET_OF_aper.c 9 files changed, 51 insertions(+), 41 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/src/sbcap/gen/INTEGER_aper.c b/src/sbcap/gen/INTEGER_aper.c index bd19de1..fc88268 100644 --- a/src/sbcap/gen/INTEGER_aper.c +++ b/src/sbcap/gen/INTEGER_aper.c @@ -87,8 +87,8 @@ ? asn_uint642INTEGER(st, (unsigned long)value) : asn_int642INTEGER(st, value)) ASN__DECODE_FAILED; - ASN_DEBUG("Got value %ld + low %ld", - value, ct->lower_bound); + ASN_DEBUG("Got value %ld + low %lld", + value, (long long int)ct->lower_bound); } else { long value = 0; if (ct->range_bits < 8) { @@ -111,8 +111,8 @@ ? asn_ulong2INTEGER(st, value) : asn_long2INTEGER(st, value)) ASN__DECODE_FAILED; - ASN_DEBUG("Got value %ld + low %ld", - value, ct->lower_bound); + ASN_DEBUG("Got value %ld + low %lld", + value, (long long int)ct->lower_bound); } return rval; } else { @@ -191,9 +191,10 @@ || uval > (unsigned long)ct->upper_bound) inext = 1; } - ASN_DEBUG("Value %lu (%02x/%lu) lb %ld ub %ld %s", + ASN_DEBUG("Value %lu (%02x/%zu) lb %lld ub %lld %s", uval, st->buf[0], st->size, - ct->lower_bound, ct->upper_bound, + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, inext ? "ext" : "fix"); value = uval; } else { @@ -207,9 +208,10 @@ || value > ct->upper_bound) inext = 1; } - ASN_DEBUG("Value %lu (%02x/%lu) lb %ld ub %ld %s", + ASN_DEBUG("Value %lu (%02x/%zu) lb %lld ub %lld %s", value, st->buf[0], st->size, - ct->lower_bound, ct->upper_bound, + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, inext ? "ext" : "fix"); } if(ct->flags & APC_EXTENSIBLE) { @@ -226,8 +228,9 @@ unsigned long v; /* #10.5.6 */ - ASN_DEBUG("Encoding integer %ld (%lu) with range %d bits", - value, value - ct->lower_bound, ct->range_bits); + ASN_DEBUG("Encoding integer %ld (%lld) with range %d bits", + value, (long long int)(value - ct->lower_bound), + ct->range_bits); v = value - ct->lower_bound; @@ -284,7 +287,7 @@ } if(ct && ct->lower_bound) { - ASN_DEBUG("Adjust lower bound to %ld", ct->lower_bound); + ASN_DEBUG("Adjust lower bound to %lld", (long long int)ct->lower_bound); /* TODO: adjust lower bound */ ASN__ENCODE_FAILED; } diff --git a/src/sbcap/gen/NativeEnumerated_aper.c b/src/sbcap/gen/NativeEnumerated_aper.c index 817a783..5c4c256 100644 --- a/src/sbcap/gen/NativeEnumerated_aper.c +++ b/src/sbcap/gen/NativeEnumerated_aper.c @@ -42,8 +42,10 @@ if(ct && ct->upper_bound >= 255) { int padding = 0; padding = (8 - (pd->moved % 8)) % 8; - ASN_DEBUG("For NativeEnumerated %s,offset= %lu Padding bits = %d", td->name, pd->moved, padding); - ASN_DEBUG("For NativeEnumerated %s, upper bound = %lu", td->name, ct->upper_bound); + ASN_DEBUG("For NativeEnumerated %s,offset = %zu Padding bits = %d", + td->name, pd->moved, padding); + ASN_DEBUG("For NativeEnumerated %s, upper bound = %llu", + td->name, (unsigned long long)ct->upper_bound); if(padding > 0) per_get_few_bits(pd, padding); } diff --git a/src/sbcap/gen/OCTET_STRING_aper.c b/src/sbcap/gen/OCTET_STRING_aper.c index fb760c4..0373fe6 100644 --- a/src/sbcap/gen/OCTET_STRING_aper.c +++ b/src/sbcap/gen/OCTET_STRING_aper.c @@ -100,9 +100,10 @@ if(!st) RETURN(RC_FAIL); } - ASN_DEBUG("PER Decoding %s size %ld .. %ld bits %d", + ASN_DEBUG("PER Decoding %s size %lld .. %lld bits %d", csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible", - csiz->lower_bound, csiz->upper_bound, csiz->effective_bits); + (long long int)csiz->lower_bound, (long long int)csiz->upper_bound, + csiz->effective_bits); if(csiz->flags & APC_EXTENSIBLE) { int inext = per_get_few_bits(pd, 1); @@ -136,8 +137,8 @@ RETURN(RC_FAIL); } if(bpc) { - ASN_DEBUG("Decoding OCTET STRING size %ld", - csiz->upper_bound); + ASN_DEBUG("Decoding OCTET STRING size %lld", + (long long int)csiz->upper_bound); ret = OCTET_STRING_per_get_characters(pd, st->buf, csiz->upper_bound, bpc, unit_bits, @@ -146,8 +147,8 @@ pc); if(ret > 0) RETURN(RC_FAIL); } else { - ASN_DEBUG("Decoding BIT STRING size %ld", - csiz->upper_bound); + ASN_DEBUG("Decoding BIT STRING size %lld", + (long long int)csiz->upper_bound); ret = per_get_many_bits(pd, st->buf, 0, unit_bits * csiz->upper_bound); } @@ -307,9 +308,10 @@ } ASN_DEBUG("Encoding %s into %d units of %d bits" - " (%ld..%ld, effective %d)%s", + " (%lld..%lld, effective %d)%s", td->name, sizeinunits, unit_bits, - csiz->lower_bound, csiz->upper_bound, + (long long int)csiz->lower_bound, + (long long int)csiz->upper_bound, csiz->effective_bits, ct_extensible ? " EXT" : ""); /* Figure out wheter size lies within PER visible constraint */ @@ -339,8 +341,8 @@ /* X.691, #16.6: short fixed length encoding (up to 2 octets) */ /* X.691, #16.7: long fixed length encoding (up to 64K octets) */ if(csiz->effective_bits >= 0) { - ASN_DEBUG("Encoding %lu bytes (%ld), length in %d bits", - st->size, sizeinunits - csiz->lower_bound, + ASN_DEBUG("Encoding %zu bytes (%lld), length in %d bits", + st->size, (long long int)(sizeinunits - csiz->lower_bound), csiz->effective_bits); if (csiz->effective_bits > 0) { ret = aper_put_length(po, csiz->lower_bound, csiz->upper_bound, @@ -369,7 +371,7 @@ ASN__ENCODED_OK(er); } - ASN_DEBUG("Encoding %lu bytes", st->size); + ASN_DEBUG("Encoding %zu bytes", st->size); if(sizeinunits == 0) { if(aper_put_length(po, -1, -1, 0, NULL) < 0) diff --git a/src/sbcap/gen/aper_opentype.c b/src/sbcap/gen/aper_opentype.c index 97cc410..cdd5999 100644 --- a/src/sbcap/gen/aper_opentype.c +++ b/src/sbcap/gen/aper_opentype.c @@ -115,7 +115,7 @@ FREEMEM(buf); if(toGo) return -1; - ASN_DEBUG("Open type put %s of length %ld + overhead (1byte?)", + ASN_DEBUG("Open type put %s of length %zd + overhead (1byte?)", td->name, size); return 0; diff --git a/src/sbcap/gen/aper_support.c b/src/sbcap/gen/aper_support.c index 9ca8614..1f34c60 100644 --- a/src/sbcap/gen/aper_support.c +++ b/src/sbcap/gen/aper_support.c @@ -59,7 +59,7 @@ if(per_get_few_bits(pd, 1) == 0) { length = per_get_few_bits(pd, 6) + 1; if(length <= 0) return -1; - ASN_DEBUG("l=%ld", length); + ASN_DEBUG("l=%zd", length); return length; } else { int repeat; diff --git a/src/sbcap/gen/constr_CHOICE_aper.c b/src/sbcap/gen/constr_CHOICE_aper.c index 0df8568..88daaf2 100644 --- a/src/sbcap/gen/constr_CHOICE_aper.c +++ b/src/sbcap/gen/constr_CHOICE_aper.c @@ -13,12 +13,12 @@ const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; asn_dec_rval_t rv; - const asn_per_constraint_t *ct; - asn_TYPE_member_t *elm; /* CHOICE's element */ - void *memb_ptr; - void **memb_ptr2; + const asn_per_constraint_t *ct = NULL; + asn_TYPE_member_t *elm = NULL; /* CHOICE's element */ + void *memb_ptr = NULL; + void **memb_ptr2 = NULL; void *st = *sptr; - int value; + int value = 0; if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) ASN__DECODE_FAILED; diff --git a/src/sbcap/gen/constr_SEQUENCE_OF_aper.c b/src/sbcap/gen/constr_SEQUENCE_OF_aper.c index 038657a..ff3ae8b 100644 --- a/src/sbcap/gen/constr_SEQUENCE_OF_aper.c +++ b/src/sbcap/gen/constr_SEQUENCE_OF_aper.c @@ -33,8 +33,9 @@ if(ct) { int not_in_root = (list->count < ct->lower_bound || list->count > ct->upper_bound); - ASN_DEBUG("lb %ld ub %ld %s", - ct->lower_bound, ct->upper_bound, + ASN_DEBUG("lb %lld ub %lld %s", + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); if(ct->flags & APC_EXTENSIBLE) { /* Declare whether size is in extension root */ diff --git a/src/sbcap/gen/constr_SEQUENCE_aper.c b/src/sbcap/gen/constr_SEQUENCE_aper.c index 5d05921..895b6da 100644 --- a/src/sbcap/gen/constr_SEQUENCE_aper.c +++ b/src/sbcap/gen/constr_SEQUENCE_aper.c @@ -175,7 +175,7 @@ memset(&epmd, 0, sizeof(epmd)); epmd.buffer = epres; epmd.nbits = bmlength; - ASN_DEBUG("Read in extensions bitmap for %s of %ld bits (%x..)", + ASN_DEBUG("Read in extensions bitmap for %s of %zd bits (%x..)", td->name, bmlength, *epres); /* Deal with padding */ @@ -190,7 +190,7 @@ int present; if(!IN_EXTENSION_GROUP(specs, edx)) { - ASN_DEBUG("%ld is not extension", edx); + ASN_DEBUG("%zu is not extension", edx); continue; } @@ -288,7 +288,7 @@ int present; if(!IN_EXTENSION_GROUP(specs, edx)) { - ASN_DEBUG("%s (@%ld) is not extension", elm->type->name, edx); + ASN_DEBUG("%s (@%zu) is not extension", elm->type->name, edx); continue; } @@ -302,7 +302,7 @@ present = 1; } - ASN_DEBUG("checking %s (@%ld) present => %d", + ASN_DEBUG("checking %s (@%zu) present => %d", elm->type->name, edx, present); exts_count++; exts_present += present; @@ -410,7 +410,7 @@ if(elm->flags & ATF_POINTER) { memb_ptr2 = (const void * const *)((const char *)sptr + elm->memb_offset); if(!*memb_ptr2) { - ASN_DEBUG("Element %s %ld not present", + ASN_DEBUG("Element %s %zu not present", elm->name, edx); if(elm->optional) continue; diff --git a/src/sbcap/gen/constr_SET_OF_aper.c b/src/sbcap/gen/constr_SET_OF_aper.c index 72d52a6..87c341e 100644 --- a/src/sbcap/gen/constr_SET_OF_aper.c +++ b/src/sbcap/gen/constr_SET_OF_aper.c @@ -34,7 +34,9 @@ if(ct) { int not_in_root = (list->count < ct->lower_bound || list->count > ct->upper_bound); - ASN_DEBUG("lb %ld ub %ld %s", ct->lower_bound, ct->upper_bound, + ASN_DEBUG("lb %lld ub %lld %s", + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); if(ct->flags & APC_EXTENSIBLE) { /* Declare whether size is in extension root */ @@ -130,8 +132,8 @@ if(ct && ct->effective_bits >= 0) { /* X.691, #19.5: No length determinant */ nelems = aper_get_nsnnwn(pd, ct->upper_bound - ct->lower_bound + 1); - ASN_DEBUG("Preparing to fetch %ld+%ld elements from %s", - (long)nelems, ct->lower_bound, td->name); + ASN_DEBUG("Preparing to fetch %ld+%lld elements from %s", + (long)nelems, (long long int)ct->lower_bound, td->name); if(nelems < 0) ASN__DECODE_STARVED; nelems += ct->lower_bound; } else { -- To view, visit
https://gerrit.osmocom.org/c/osmo-cbc/+/28658
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc Gerrit-Branch: master Gerrit-Change-Id: I9ca556dec639223a8d37badb908fab254826192e Gerrit-Change-Number: 28658 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-MessageType: merged
2 years, 11 months
1
0
0
0
Change in osmo-cbc[master]: sbcap: Update asn1c skeleton files
by pespin
pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/osmo-cbc/+/28658
) Change subject: sbcap: Update asn1c skeleton files ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit
https://gerrit.osmocom.org/c/osmo-cbc/+/28658
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc Gerrit-Branch: master Gerrit-Change-Id: I9ca556dec639223a8d37badb908fab254826192e Gerrit-Change-Number: 28658 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Tue, 19 Jul 2022 18:36:00 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 11 months
1
0
0
0
Change in osmo-cbc[master]: sbcap: Update asn1c skeleton files
by pespin
pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-cbc/+/28658
) Change subject: sbcap: Update asn1c skeleton files ...................................................................... sbcap: Update asn1c skeleton files Update skeleton files using newest asn1c with APER support [1], commit eb4cd0c2a891a7dbfe90b4cb8cca545879b6d622. This contains APER fixes for 32bit architectures. [1]
https://github.com/mouse07410/asn1c/tree/vlm_master/
Change-Id: I9ca556dec639223a8d37badb908fab254826192e --- M src/sbcap/gen/INTEGER_aper.c M src/sbcap/gen/NativeEnumerated_aper.c M src/sbcap/gen/OCTET_STRING_aper.c M src/sbcap/gen/aper_opentype.c M src/sbcap/gen/aper_support.c M src/sbcap/gen/constr_CHOICE_aper.c M src/sbcap/gen/constr_SEQUENCE_OF_aper.c M src/sbcap/gen/constr_SEQUENCE_aper.c M src/sbcap/gen/constr_SET_OF_aper.c 9 files changed, 51 insertions(+), 41 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-cbc refs/changes/58/28658/1 diff --git a/src/sbcap/gen/INTEGER_aper.c b/src/sbcap/gen/INTEGER_aper.c index bd19de1..fc88268 100644 --- a/src/sbcap/gen/INTEGER_aper.c +++ b/src/sbcap/gen/INTEGER_aper.c @@ -87,8 +87,8 @@ ? asn_uint642INTEGER(st, (unsigned long)value) : asn_int642INTEGER(st, value)) ASN__DECODE_FAILED; - ASN_DEBUG("Got value %ld + low %ld", - value, ct->lower_bound); + ASN_DEBUG("Got value %ld + low %lld", + value, (long long int)ct->lower_bound); } else { long value = 0; if (ct->range_bits < 8) { @@ -111,8 +111,8 @@ ? asn_ulong2INTEGER(st, value) : asn_long2INTEGER(st, value)) ASN__DECODE_FAILED; - ASN_DEBUG("Got value %ld + low %ld", - value, ct->lower_bound); + ASN_DEBUG("Got value %ld + low %lld", + value, (long long int)ct->lower_bound); } return rval; } else { @@ -191,9 +191,10 @@ || uval > (unsigned long)ct->upper_bound) inext = 1; } - ASN_DEBUG("Value %lu (%02x/%lu) lb %ld ub %ld %s", + ASN_DEBUG("Value %lu (%02x/%zu) lb %lld ub %lld %s", uval, st->buf[0], st->size, - ct->lower_bound, ct->upper_bound, + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, inext ? "ext" : "fix"); value = uval; } else { @@ -207,9 +208,10 @@ || value > ct->upper_bound) inext = 1; } - ASN_DEBUG("Value %lu (%02x/%lu) lb %ld ub %ld %s", + ASN_DEBUG("Value %lu (%02x/%zu) lb %lld ub %lld %s", value, st->buf[0], st->size, - ct->lower_bound, ct->upper_bound, + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, inext ? "ext" : "fix"); } if(ct->flags & APC_EXTENSIBLE) { @@ -226,8 +228,9 @@ unsigned long v; /* #10.5.6 */ - ASN_DEBUG("Encoding integer %ld (%lu) with range %d bits", - value, value - ct->lower_bound, ct->range_bits); + ASN_DEBUG("Encoding integer %ld (%lld) with range %d bits", + value, (long long int)(value - ct->lower_bound), + ct->range_bits); v = value - ct->lower_bound; @@ -284,7 +287,7 @@ } if(ct && ct->lower_bound) { - ASN_DEBUG("Adjust lower bound to %ld", ct->lower_bound); + ASN_DEBUG("Adjust lower bound to %lld", (long long int)ct->lower_bound); /* TODO: adjust lower bound */ ASN__ENCODE_FAILED; } diff --git a/src/sbcap/gen/NativeEnumerated_aper.c b/src/sbcap/gen/NativeEnumerated_aper.c index 817a783..5c4c256 100644 --- a/src/sbcap/gen/NativeEnumerated_aper.c +++ b/src/sbcap/gen/NativeEnumerated_aper.c @@ -42,8 +42,10 @@ if(ct && ct->upper_bound >= 255) { int padding = 0; padding = (8 - (pd->moved % 8)) % 8; - ASN_DEBUG("For NativeEnumerated %s,offset= %lu Padding bits = %d", td->name, pd->moved, padding); - ASN_DEBUG("For NativeEnumerated %s, upper bound = %lu", td->name, ct->upper_bound); + ASN_DEBUG("For NativeEnumerated %s,offset = %zu Padding bits = %d", + td->name, pd->moved, padding); + ASN_DEBUG("For NativeEnumerated %s, upper bound = %llu", + td->name, (unsigned long long)ct->upper_bound); if(padding > 0) per_get_few_bits(pd, padding); } diff --git a/src/sbcap/gen/OCTET_STRING_aper.c b/src/sbcap/gen/OCTET_STRING_aper.c index fb760c4..0373fe6 100644 --- a/src/sbcap/gen/OCTET_STRING_aper.c +++ b/src/sbcap/gen/OCTET_STRING_aper.c @@ -100,9 +100,10 @@ if(!st) RETURN(RC_FAIL); } - ASN_DEBUG("PER Decoding %s size %ld .. %ld bits %d", + ASN_DEBUG("PER Decoding %s size %lld .. %lld bits %d", csiz->flags & APC_EXTENSIBLE ? "extensible" : "non-extensible", - csiz->lower_bound, csiz->upper_bound, csiz->effective_bits); + (long long int)csiz->lower_bound, (long long int)csiz->upper_bound, + csiz->effective_bits); if(csiz->flags & APC_EXTENSIBLE) { int inext = per_get_few_bits(pd, 1); @@ -136,8 +137,8 @@ RETURN(RC_FAIL); } if(bpc) { - ASN_DEBUG("Decoding OCTET STRING size %ld", - csiz->upper_bound); + ASN_DEBUG("Decoding OCTET STRING size %lld", + (long long int)csiz->upper_bound); ret = OCTET_STRING_per_get_characters(pd, st->buf, csiz->upper_bound, bpc, unit_bits, @@ -146,8 +147,8 @@ pc); if(ret > 0) RETURN(RC_FAIL); } else { - ASN_DEBUG("Decoding BIT STRING size %ld", - csiz->upper_bound); + ASN_DEBUG("Decoding BIT STRING size %lld", + (long long int)csiz->upper_bound); ret = per_get_many_bits(pd, st->buf, 0, unit_bits * csiz->upper_bound); } @@ -307,9 +308,10 @@ } ASN_DEBUG("Encoding %s into %d units of %d bits" - " (%ld..%ld, effective %d)%s", + " (%lld..%lld, effective %d)%s", td->name, sizeinunits, unit_bits, - csiz->lower_bound, csiz->upper_bound, + (long long int)csiz->lower_bound, + (long long int)csiz->upper_bound, csiz->effective_bits, ct_extensible ? " EXT" : ""); /* Figure out wheter size lies within PER visible constraint */ @@ -339,8 +341,8 @@ /* X.691, #16.6: short fixed length encoding (up to 2 octets) */ /* X.691, #16.7: long fixed length encoding (up to 64K octets) */ if(csiz->effective_bits >= 0) { - ASN_DEBUG("Encoding %lu bytes (%ld), length in %d bits", - st->size, sizeinunits - csiz->lower_bound, + ASN_DEBUG("Encoding %zu bytes (%lld), length in %d bits", + st->size, (long long int)(sizeinunits - csiz->lower_bound), csiz->effective_bits); if (csiz->effective_bits > 0) { ret = aper_put_length(po, csiz->lower_bound, csiz->upper_bound, @@ -369,7 +371,7 @@ ASN__ENCODED_OK(er); } - ASN_DEBUG("Encoding %lu bytes", st->size); + ASN_DEBUG("Encoding %zu bytes", st->size); if(sizeinunits == 0) { if(aper_put_length(po, -1, -1, 0, NULL) < 0) diff --git a/src/sbcap/gen/aper_opentype.c b/src/sbcap/gen/aper_opentype.c index 97cc410..cdd5999 100644 --- a/src/sbcap/gen/aper_opentype.c +++ b/src/sbcap/gen/aper_opentype.c @@ -115,7 +115,7 @@ FREEMEM(buf); if(toGo) return -1; - ASN_DEBUG("Open type put %s of length %ld + overhead (1byte?)", + ASN_DEBUG("Open type put %s of length %zd + overhead (1byte?)", td->name, size); return 0; diff --git a/src/sbcap/gen/aper_support.c b/src/sbcap/gen/aper_support.c index 9ca8614..1f34c60 100644 --- a/src/sbcap/gen/aper_support.c +++ b/src/sbcap/gen/aper_support.c @@ -59,7 +59,7 @@ if(per_get_few_bits(pd, 1) == 0) { length = per_get_few_bits(pd, 6) + 1; if(length <= 0) return -1; - ASN_DEBUG("l=%ld", length); + ASN_DEBUG("l=%zd", length); return length; } else { int repeat; diff --git a/src/sbcap/gen/constr_CHOICE_aper.c b/src/sbcap/gen/constr_CHOICE_aper.c index 0df8568..88daaf2 100644 --- a/src/sbcap/gen/constr_CHOICE_aper.c +++ b/src/sbcap/gen/constr_CHOICE_aper.c @@ -13,12 +13,12 @@ const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { const asn_CHOICE_specifics_t *specs = (const asn_CHOICE_specifics_t *)td->specifics; asn_dec_rval_t rv; - const asn_per_constraint_t *ct; - asn_TYPE_member_t *elm; /* CHOICE's element */ - void *memb_ptr; - void **memb_ptr2; + const asn_per_constraint_t *ct = NULL; + asn_TYPE_member_t *elm = NULL; /* CHOICE's element */ + void *memb_ptr = NULL; + void **memb_ptr2 = NULL; void *st = *sptr; - int value; + int value = 0; if(ASN__STACK_OVERFLOW_CHECK(opt_codec_ctx)) ASN__DECODE_FAILED; diff --git a/src/sbcap/gen/constr_SEQUENCE_OF_aper.c b/src/sbcap/gen/constr_SEQUENCE_OF_aper.c index 038657a..ff3ae8b 100644 --- a/src/sbcap/gen/constr_SEQUENCE_OF_aper.c +++ b/src/sbcap/gen/constr_SEQUENCE_OF_aper.c @@ -33,8 +33,9 @@ if(ct) { int not_in_root = (list->count < ct->lower_bound || list->count > ct->upper_bound); - ASN_DEBUG("lb %ld ub %ld %s", - ct->lower_bound, ct->upper_bound, + ASN_DEBUG("lb %lld ub %lld %s", + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); if(ct->flags & APC_EXTENSIBLE) { /* Declare whether size is in extension root */ diff --git a/src/sbcap/gen/constr_SEQUENCE_aper.c b/src/sbcap/gen/constr_SEQUENCE_aper.c index 5d05921..895b6da 100644 --- a/src/sbcap/gen/constr_SEQUENCE_aper.c +++ b/src/sbcap/gen/constr_SEQUENCE_aper.c @@ -175,7 +175,7 @@ memset(&epmd, 0, sizeof(epmd)); epmd.buffer = epres; epmd.nbits = bmlength; - ASN_DEBUG("Read in extensions bitmap for %s of %ld bits (%x..)", + ASN_DEBUG("Read in extensions bitmap for %s of %zd bits (%x..)", td->name, bmlength, *epres); /* Deal with padding */ @@ -190,7 +190,7 @@ int present; if(!IN_EXTENSION_GROUP(specs, edx)) { - ASN_DEBUG("%ld is not extension", edx); + ASN_DEBUG("%zu is not extension", edx); continue; } @@ -288,7 +288,7 @@ int present; if(!IN_EXTENSION_GROUP(specs, edx)) { - ASN_DEBUG("%s (@%ld) is not extension", elm->type->name, edx); + ASN_DEBUG("%s (@%zu) is not extension", elm->type->name, edx); continue; } @@ -302,7 +302,7 @@ present = 1; } - ASN_DEBUG("checking %s (@%ld) present => %d", + ASN_DEBUG("checking %s (@%zu) present => %d", elm->type->name, edx, present); exts_count++; exts_present += present; @@ -410,7 +410,7 @@ if(elm->flags & ATF_POINTER) { memb_ptr2 = (const void * const *)((const char *)sptr + elm->memb_offset); if(!*memb_ptr2) { - ASN_DEBUG("Element %s %ld not present", + ASN_DEBUG("Element %s %zu not present", elm->name, edx); if(elm->optional) continue; diff --git a/src/sbcap/gen/constr_SET_OF_aper.c b/src/sbcap/gen/constr_SET_OF_aper.c index 72d52a6..87c341e 100644 --- a/src/sbcap/gen/constr_SET_OF_aper.c +++ b/src/sbcap/gen/constr_SET_OF_aper.c @@ -34,7 +34,9 @@ if(ct) { int not_in_root = (list->count < ct->lower_bound || list->count > ct->upper_bound); - ASN_DEBUG("lb %ld ub %ld %s", ct->lower_bound, ct->upper_bound, + ASN_DEBUG("lb %lld ub %lld %s", + (long long int)ct->lower_bound, + (long long int)ct->upper_bound, ct->flags & APC_EXTENSIBLE ? "ext" : "fix"); if(ct->flags & APC_EXTENSIBLE) { /* Declare whether size is in extension root */ @@ -130,8 +132,8 @@ if(ct && ct->effective_bits >= 0) { /* X.691, #19.5: No length determinant */ nelems = aper_get_nsnnwn(pd, ct->upper_bound - ct->lower_bound + 1); - ASN_DEBUG("Preparing to fetch %ld+%ld elements from %s", - (long)nelems, ct->lower_bound, td->name); + ASN_DEBUG("Preparing to fetch %ld+%lld elements from %s", + (long)nelems, (long long int)ct->lower_bound, td->name); if(nelems < 0) ASN__DECODE_STARVED; nelems += ct->lower_bound; } else { -- To view, visit
https://gerrit.osmocom.org/c/osmo-cbc/+/28658
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc Gerrit-Branch: master Gerrit-Change-Id: I9ca556dec639223a8d37badb908fab254826192e Gerrit-Change-Number: 28658 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-MessageType: newchange
2 years, 11 months
1
0
0
0
Build failure of network:osmocom:nightly/libosmo-dsp in openSUSE_Factory_ARM/armv7l
by OBS Notification
Visit
https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/l…
Package network:osmocom:nightly/libosmo-dsp failed to build in openSUSE_Factory_ARM/armv7l Check out the package for editing: osc checkout network:osmocom:nightly libosmo-dsp Last lines of build log: [ 79s] mktexlsr: Updating /var/cache/texmf/fonts/texmf... [ 79s] mktexlsr: Updating /var/lib/texmf... [ 79s] mktexlsr: Done. [ 79s] ... running 01-add_abuild_user_to_trusted_group [ 79s] ... running 02-set_timezone_to_utc [ 79s] ... running 03-set-permissions-secure [ 79s] ... running 11-hack_uname_version_to_kernel_version [ 80s] build target is armv7hl-suse-linux [ 80s] ----------------------------------------------------------------- [ 80s] I have the following modifications for libosmo-dsp.spec: [ 80s] 12c12 [ 80s] < Release: 0 [ 80s] --- [ 80s] > Release: 1.1 [ 80s] ----------------------------------------------------------------- [ 80s] ----- building libosmo-dsp.spec (user abuild) [ 80s] ----------------------------------------------------------------- [ 80s] ----------------------------------------------------------------- [ 80s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --target=armv7hl-suse-linux --define '_build_create_debug 1' --define 'disturl
obs://build.opensuse.org/network:osmocom:nightly/openSUSE_Factory_ARM/29ba9…
' /home/abuild/rpmbuild/SOURCES/libosmo-dsp.spec [ 80s] error: Bad source: /home/abuild/rpmbuild/SOURCES/HTML_TIMESTAMP.diff: No such file or directory [ 80s] Building target platforms: armv7hl-suse-linux [ 80s] Building for target armv7hl-suse-linux [ 80s] ### VM INTERACTION START ### [ 81s] [ 74.968960][ T1] sysrq: Power Off [ 81s] [ 74.989305][ T16] reboot: Power down [ 81s] ### VM INTERACTION END ### [ 81s] [ 81s] obs-arm-11 failed "build libosmo-dsp.spec" at Tue Jul 19 18:03:26 UTC 2022. [ 81s] -- Configure notifications at
https://build.opensuse.org/my/subscriptions
openSUSE Build Service (
https://build.opensuse.org/
)
2 years, 11 months
1
0
0
0
Change in osmo-pcu[master]: neigh_cache: fix: properly convert from nanoseconds to microseconds
by fixeria
fixeria has submitted this change. (
https://gerrit.osmocom.org/c/osmo-pcu/+/28657
) Change subject: neigh_cache: fix: properly convert from nanoseconds to microseconds ...................................................................... neigh_cache: fix: properly convert from nanoseconds to microseconds Change-Id: I38dc7c04b1fd0e3a17af4c8caef991916f25f2b9 --- M src/neigh_cache.c 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/neigh_cache.c b/src/neigh_cache.c index 2f82fee..28e27e6 100644 --- a/src/neigh_cache.c +++ b/src/neigh_cache.c @@ -69,7 +69,7 @@ } else { timespecsub(&threshold, &now, &result); } - osmo_timer_schedule(&cache->cleanup_timer, result.tv_sec, result.tv_nsec*1000); + osmo_timer_schedule(&cache->cleanup_timer, result.tv_sec, result.tv_nsec / 1000); } struct neigh_cache *neigh_cache_alloc(void *ctx, unsigned int keep_time_sec) @@ -203,7 +203,7 @@ } else { timespecsub(&threshold, &now, &result); } - osmo_timer_schedule(&cache->cleanup_timer, result.tv_sec, result.tv_nsec*1000); + osmo_timer_schedule(&cache->cleanup_timer, result.tv_sec, result.tv_nsec / 1000); } struct si_cache *si_cache_alloc(void *ctx, unsigned int keep_time_sec) -- To view, visit
https://gerrit.osmocom.org/c/osmo-pcu/+/28657
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Change-Id: I38dc7c04b1fd0e3a17af4c8caef991916f25f2b9 Gerrit-Change-Number: 28657 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-MessageType: merged
2 years, 11 months
1
0
0
0
Change in osmo-pcu[master]: neigh_cache: fix: properly convert from nanoseconds to microseconds
by pespin
Attention is currently required from: fixeria. pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/osmo-pcu/+/28657
) Change subject: neigh_cache: fix: properly convert from nanoseconds to microseconds ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit
https://gerrit.osmocom.org/c/osmo-pcu/+/28657
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Change-Id: I38dc7c04b1fd0e3a17af4c8caef991916f25f2b9 Gerrit-Change-Number: 28657 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: Jenkins Builder Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Tue, 19 Jul 2022 17:20:57 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 11 months
1
0
0
0
← Newer
1
...
116
117
118
119
120
121
122
...
218
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
Results per page:
10
25
50
100
200