Change in libosmocore[master]: logging: use LOGL_NOTICE when not loglevel is set

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/.

pespin gerrit-no-reply at lists.osmocom.org
Tue May 12 11:49:21 UTC 2020


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 <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Tue, 12 May 2020 11:49:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200512/4ca51d12/attachment.htm>


More information about the gerrit-log mailing list