Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30614 )
Change subject: mobile: rework writing BA to file, move to a function
......................................................................
Patch Set 1: Code-Review+1
(3 comments)
Patchset:
PS1:
My comments are just possible improvements to be done in a separate patch.
This review would have been a lot easier if you had split it into 2 patches: 1 moving to a helper function, another one changing the code logic.
File src/host/layer23/src/mobile/gsm322.c:
https://gerrit.osmocom.org/c/osmocom-bb/+/30614/comment/8dc6fec4_9303ecdf
PS1, Line 5153: };
did you think about adding ba->freq here so that there's no need to call fwrite twice?
https://gerrit.osmocom.org/c/osmocom-bb/+/30614/comment/bc2efc35_11385606
PS1, Line 5165: LOGP(DCS, LOGL_ERROR,
You probably want to delete the file if writing to it fails and it is left in a undefined state?
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30614
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Id8bc216c146127d9c9995379c9e56450d328f46d
Gerrit-Change-Number: 30614
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 19 Dec 2022 09:55:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-trx/+/30603 )
Change subject: contrib/jenkins.sh: dump submodule status before building
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/30603
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I0f9d8f9213fd59605172fac011306c96c39bd5eb
Gerrit-Change-Number: 30603
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 19 Dec 2022 09:47:30 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Hoernchen, laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/30633 )
Change subject: logging: add log level cache
......................................................................
Patch Set 6:
(6 comments)
Patchset:
PS6:
Agree with Harald regarding common prefix. Also a bit more code documentaton (add more comments) would really help understanding the different pieces for people looking at the logging code.
File src/logging.c:
https://gerrit.osmocom.org/c/libosmocore/+/30633/comment/b86d2f8d_c5c41040
PS6, Line 107: memset(tmp_level, 100, osmo_log_info->num_cat);
It would be great to have this 100 and 99 which I see used below defined with a macro, holding a descriptive name of what it is.
https://gerrit.osmocom.org/c/libosmocore/+/30633/comment/08d8d16f_8439664c
PS6, Line 134: struct log_category tmp = { 99, 0 };
using { .field_a = 99, .field_b = 0} would certainly help here udnerstanding how are you filling this.
https://gerrit.osmocom.org/c/libosmocore/+/30633/comment/ea2c088e_7c399bea
PS6, Line 145: log_level_lookup_cache[mapped_subsys] = tmp.enabled ? tmp.loglevel : 99;
Please put this 99 in a define. Also some comment explaining what this function implementation does would be nice.
https://gerrit.osmocom.org/c/libosmocore/+/30633/comment/88957624_b0549dbc
PS6, Line 156: return (level < log_level_lookup_cache[mapped_subsys]) ? false : true;
"return (log_level_lookup_cache[mapped_subsys] >= level)" seems a lot shorter :)
File tests/bitgen/bitgen_test.c:
https://gerrit.osmocom.org/c/libosmocore/+/30633/comment/f41271aa_6564ed33
PS6, Line 17: SIZE
> unrelated changes?
Ack
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/30633
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I35f8dd9127dd6e7feae392094fd6b3ce2d32558d
Gerrit-Change-Number: 30633
Gerrit-PatchSet: 6
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Mon, 19 Dec 2022 09:44:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment
Attention is currently required from: arehbein.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/30602 )
Change subject: WIP: vty: Add check against sensible default value for Ny1
......................................................................
Patch Set 9:
(1 comment)
File include/osmocom/bsc/bts.h:
https://gerrit.osmocom.org/c/osmo-bsc/+/30602/comment/5906b388_e4e27da8
PS5, Line 839: struct gsm_lchan *gl
> it's the initials of `gsm_lchan`.
Ah, I see. Fine then.
> Do you mean I should put `struct gsm_lchang const *` instead
const usually goes first in our code, so 'const struct gsm_lchan *gl' please.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/30602
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If3f96a6bd4f9ae32b6421de43c1c5a5d64482089
Gerrit-Change-Number: 30602
Gerrit-PatchSet: 9
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: arehbein <arehbein(a)sysmocom.de>
Gerrit-Comment-Date: Sun, 18 Dec 2022 20:17:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: arehbein <arehbein(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: msuraev.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/30683 )
Change subject: SMPP: refactor ref counting code
......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/osmo-msc/+/30683/comment/e8f78c6e_456a0fa3
PS1, Line 9: single-use static function to simplify
What's wrong with having this static function? The compiler will highly likely inline it anyway. From the symbol naming perspective, I think it's fine to keep it in a separate function with self-explaining name. Especially if someone will need to destroy an esme immediately some day.
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/30683
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I9cb530991f54aa78edaa885f1242f63c705b6fcb
Gerrit-Change-Number: 30683
Gerrit-PatchSet: 1
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-Comment-Date: Sun, 18 Dec 2022 19:43:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: msuraev.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/30684 )
Change subject: SMPP: use proper type for boolean variables
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/30684
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I033a2c863213a44f99827ef997f541a7a77f5d8a
Gerrit-Change-Number: 30684
Gerrit-PatchSet: 1
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-Comment-Date: Sun, 18 Dec 2022 19:37:52 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment