diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-02-05 15:57:42 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-05 15:57:42 +0100 |
commit | 07bb0daaff8d10aad4da264621e25b0986007fc5 (patch) | |
tree | 359b1c7e736d985cb75a2d74df5cea9f4bd2469b /openbsc/src/e1_input.c | |
parent | 889f16eac3e856318ba88587a0c9e2c72cd4db89 (diff) |
[E1 input] make sure config file with new E1 input config saves correctly
Diffstat (limited to 'openbsc/src/e1_input.c')
-rw-r--r-- | openbsc/src/e1_input.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c index e8587c902..67a62e4c9 100644 --- a/openbsc/src/e1_input.c +++ b/openbsc/src/e1_input.c @@ -341,12 +341,18 @@ struct e1inp_line *e1inp_line_create(u_int8_t e1_nr, const char *driver_name) int i; line = e1inp_line_get(e1_nr); - if (line) + if (line) { + LOGP(DINP, LOGL_ERROR, "E1 Line %u already exists\n", + e1_nr); return NULL; + } driver = e1inp_driver_find(driver_name); - if (!driver) + if (!driver) { + LOGP(DINP, LOGL_ERROR, "No such E1 driver '%s'\n", + driver_name); return NULL; + } line = talloc_zero(tall_bsc_ctx, struct e1inp_line); if (!line) |