Attention is currently required from: arehbein.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/33206 )

Change subject: stream (cosmetic): Fix osmo_panic log fmts
......................................................................


Patch Set 6:

(1 comment)

File src/stream.c:

https://gerrit.osmocom.org/c/libosmo-netif/+/33206/comment/7ba191aa_2f81a7c3
PS6, Line 615:                     cli->state);
there's also the __func__ or __FUNCTION__ macro that could be used here.  This 
makes the compiler insert the function name.  So something like

osmo_panic("%s called with unexpected state %d\n", __func__, cli->state);

This way it will work even if the code is refactored, functions are renamed 
etc. in the future.



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

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Id082a9473b788f8de20cdc2ba4430b3289f4ce5a
Gerrit-Change-Number: 33206
Gerrit-PatchSet: 6
Gerrit-Owner: arehbein <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-Attention: arehbein <[email protected]>
Gerrit-Comment-Date: Tue, 04 Jul 2023 10:42:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Reply via email to