fixeria 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:

(2 comments)

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 e […]
I can be 'cat_ptr' or even just 'cat'.


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 […]
osmo_log_info is allocated by this function using talloc_zero(), and this is 
the only place where it's actually initialized. Thus no need to check not 
free() anything.



--
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 13:30:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pes...@sysmocom.de>
Gerrit-MessageType: comment

Reply via email to