print/log OpenBTS / OsmoBTS variant in PCU startup

Otherwise it can be very confusing, as Max had to figure out today...
This commit is contained in:
Harald Welte 2015-11-12 01:07:41 +01:00
parent d32cbbb130
commit 218482769b
2 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,8 @@ int pcu_l1if_open()
struct femtol1_hdl *fl1h;
int rc;
LOGP(DL1IF, LOGL_INFO, "Opening OsmoPCU L1 interface to OpenBTS\n");
/* allocate new femtol1_handle */
fl1h = talloc_zero(tall_pcu_ctx, struct femtol1_hdl);
INIT_LLIST_HEAD(&fl1h->wlc_list);

View File

@ -224,6 +224,8 @@ int pcu_l1if_open(void)
unsigned int namelen;
int rc;
LOGP(DL1IF, LOGL_INFO, "Opening OsmoPCU L1 interface to OsmoBTS\n");
state = pcu_sock_state;
if (!state) {
state = talloc_zero(tall_pcu_ctx, struct pcu_sock_state);