From 07bb0daaff8d10aad4da264621e25b0986007fc5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 5 Feb 2011 15:57:42 +0100 Subject: [E1 input] make sure config file with new E1 input config saves correctly --- openbsc/src/e1_input.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'openbsc/src/e1_input.c') 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) -- cgit v1.2.3