mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
bsc: fix bail out in case of problems bootstrapping BTS or E1 input
The error message was missing in case of problems bootstrapping the BTS. The E1 input driver initialization was displayed in the standard output, now this error is reported via logs.
This commit is contained in:
committed by
Harald Welte
parent
d2a7878b35
commit
6e52b88a17
@@ -439,7 +439,10 @@ int bsc_bootstrap_network(int (*mncc_recv)(struct gsm_network *, struct msgb *),
|
||||
|
||||
llist_for_each_entry(bts, &bsc_gsmnet->bts_list, list) {
|
||||
rc = bootstrap_bts(bts);
|
||||
|
||||
if (rc < 0) {
|
||||
LOGP(DNM, LOGL_FATAL, "Error bootstrapping BTS\n");
|
||||
return rc;
|
||||
}
|
||||
switch (bts->type) {
|
||||
case GSM_BTS_TYPE_NANOBTS:
|
||||
case GSM_BTS_TYPE_HSL_FEMTO:
|
||||
@@ -448,10 +451,9 @@ int bsc_bootstrap_network(int (*mncc_recv)(struct gsm_network *, struct msgb *),
|
||||
rc = e1_reconfig_bts(bts);
|
||||
break;
|
||||
}
|
||||
|
||||
if (rc < 0) {
|
||||
fprintf(stderr, "Error in E1 input driver setup\n");
|
||||
exit (1);
|
||||
LOGP(DNM, LOGL_FATAL, "Error enabling E1 input driver\n");
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user