From 38d232ee5d2ceb045d9ad6d3a23afcb4972523f7 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 19 Sep 2016 14:17:30 +0200 Subject: 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 --- src/ctrl/control_if.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3