pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/17604 )

Change subject: logging: use LOGL_NOTICE when not loglevel is set
......................................................................


Patch Set 6: Code-Review-1

(4 comments)

https://gerrit.osmocom.org/c/libosmocore/+/17604/6//COMMIT_MSG
Commit Message:

https://gerrit.osmocom.org/c/libosmocore/+/17604/6//COMMIT_MSG@7
PS6, Line 7: logging: use LOGL_NOTICE when not loglevel is set
"no loglevel"


https://gerrit.osmocom.org/c/libosmocore/+/17604/6/src/logging.c
File src/logging.c:

https://gerrit.osmocom.org/c/libosmocore/+/17604/6/src/logging.c@1047
PS6, Line 1047:         cat_temp_ptr = talloc_zero_array(osmo_log_info,
please change name, "temp" seems to say the variable is function-scoped and 
should be freed before exiting, and this is not the case, since this struct is 
probably gonna be left there for the entire run of the process.


https://gerrit.osmocom.org/c/libosmocore/+/17604/6/src/logging.c@1074
PS6, Line 1074:                        sizeof(struct log_info_cat));
you can move this to previous line, there's still space for it.


https://gerrit.osmocom.org/c/libosmocore/+/17604/6/src/logging.c@1077
PS6, Line 1077:         osmo_log_info->cat = cat_temp_ptr;
if osmo_log_info->cat is not NULL, talloc_free it before assigning it, to make 
sure we don't leak if somebody calls log_init twice.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/17604
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib9e180261505062505fc4605a98023910f76cde6
Gerrit-Change-Number: 17604
Gerrit-PatchSet: 6
Gerrit-Owner: dexter <pma...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pma...@sysmocom.de>
Gerrit-Reviewer: fixeria <axilira...@gmail.com>
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-Comment-Date: Tue, 12 May 2020 11:49:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Reply via email to