From: Tobias Brunner Date: Wed, 1 Mar 2017 15:07:57 +0000 (+0100) Subject: child-sa: Add log message for CHILD_SA state changes X-Git-Tag: 5.5.3~25^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84757f2e6f253ed2ed6045fe53cce470acc3101;p=thirdparty%2Fstrongswan.git child-sa: Add log message for CHILD_SA state changes --- diff --git a/src/libcharon/sa/child_sa.c b/src/libcharon/sa/child_sa.c index 29d4680f23..2671fb7f3a 100644 --- a/src/libcharon/sa/child_sa.c +++ b/src/libcharon/sa/child_sa.c @@ -291,6 +291,10 @@ METHOD(child_sa_t, get_config, child_cfg_t*, METHOD(child_sa_t, set_state, void, private_child_sa_t *this, child_sa_state_t state) { + DBG2(DBG_CHD, "CHILD_SA %s{%d} state change: %N => %N", + get_name(this), this->unique_id, + child_sa_state_names, this->state, + child_sa_state_names, state); charon->bus->child_state_change(charon->bus, &this->public, state); this->state = state; }