Attention is currently required from: laforge, fixeria.
pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/28744 )

Change subject: trxcon: make l1sched logging configurable, use trxcon->fi as 
prefix
......................................................................


Patch Set 3:

(1 comment)

File src/host/trxcon/src/sched_trx.c:

https://gerrit.osmocom.org/c/osmocom-bb/+/28744/comment/88f7aa43_2a2e35af
PS3, Line 167:          .cfg = *cfg,
> The lifetime of trxcon_inst is limited by the lifetime of l1sched_state, they 
> cannot exist independe […]
I don't see this struct l1sched_state knows anything about such a "trxcon_inst" 
you mention here, so you are simply adding some phantom requirement here 
regarding some unknown object to be alive the same timespan as this one. That's 
really bad design imho and makes it really confusing.

You either:
- pass ownership of the str pointer to this object (bad because you don't 
really know whether it was allocated by the caller using the heap or the stack).
- Copy the log prefix into a new string owned by this object (good way imho).



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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I26da1a506b02502a3a6a887533c35fb09c13c429
Gerrit-Change-Number: 28744
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: laforge <[email protected]>
Gerrit-Attention: laforge <[email protected]>
Gerrit-Attention: fixeria <[email protected]>
Gerrit-Comment-Date: Mon, 25 Jul 2022 15:15:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <[email protected]>
Comment-In-Reply-To: pespin <[email protected]>
Gerrit-MessageType: comment

Reply via email to