osmocom-bb[master]: mobile: Move starting/stopping a MS into a separate function

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

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Nov 30 21:21:38 UTC 2017


Patch Set 2: Code-Review-1

(5 comments)

https://gerrit.osmocom.org/#/c/5100/2/src/host/layer23/include/osmocom/bb/mobile/app_mobile.h
File src/host/layer23/include/osmocom/bb/mobile/app_mobile.h:

Line 20: int mobile_stop(struct osmocom_ms *ms, int force);
as n00b I can't understand the difference between mobile_stop() and mobile_exit(), maybe the functions could use an api comment?


https://gerrit.osmocom.org/#/c/5100/2/src/host/layer23/src/mobile/app_mobile.c
File src/host/layer23/src/mobile/app_mobile.c:

Line 253: 	if (ms->shutdown != MS_SHUTDOWN_COMPL)
(log?)


Line 262: 				"use the same layer2-socket.\nPlease shutdown "
sure about \n in the middle of a LOGP? Makes sense in VTY output but "corrupts" the log output


Line 278: 	if (rc < 0)
(log?)


Line 288: 		return mobile_exit(ms, 0);
(log why nothing is done?)


-- 
To view, visit https://gerrit.osmocom.org/5100
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib4aa5ff212fa6bead8f620abaecc6a0b51a99fec
Gerrit-PatchSet: 2
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-HasComments: Yes



More information about the gerrit-log mailing list