summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-19 14:17:30 +0200
committerHarald Welte <laforge@gnumonks.org>2016-09-23 02:39:12 +0000
commit38d232ee5d2ceb045d9ad6d3a23afcb4972523f7 (patch)
tree65840e0e85a31c778cb852539bb8f6af3ba92077 /src
parent55dc2edc89c1a85187ef8aafc09f7d922383231f (diff)
log CTRL bind address and port
Log 'CTRL at 1.2.3.4 5678' from ctrl_interface_setup*. All callers can now drop any extra 'CTRL at 1.2.3.4 5678' logging. Change-Id: If449d0514e3d0cc1b346d7452194d931aa090166
Diffstat (limited to 'src')
-rw-r--r--src/ctrl/control_if.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c
index 05f6c76f..2ffc251e 100644
--- a/src/ctrl/control_if.c
+++ b/src/ctrl/control_if.c
@@ -669,11 +669,14 @@ struct ctrl_handle *ctrl_interface_setup_dynip(void *data,
if (ret)
goto err_vec;
+ LOGP(DLCTRL, LOGL_NOTICE, "CTRL at %s %u\n", bind_addr, port);
return ctrl;
err_vec:
vector_free(ctrl_node_vec);
ctrl_node_vec = NULL;
err:
+ LOGP(DLCTRL, LOGL_ERROR, "Cannot bind CTRL at %s %u\n",
+ bind_addr, port);
talloc_free(ctrl);
return NULL;
}