aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/task_manager.c
diff options
context:
space:
mode:
authorThomas Egerer <thomas.egerer@secunet.com>2010-06-06 22:50:29 +0200
committerMartin Willi <martin@revosec.ch>2010-06-07 15:12:13 +0200
commit03ffa88531c33005bd60ba733b4f5a8f581d530f (patch)
treed4081087550779a00b7efa38cc4991917216d971 /src/libcharon/sa/task_manager.c
parent5493ffde0b4577524048aaaa49ac0ee05f13dab4 (diff)
downloadstrongswan-03ffa88531c33005bd60ba733b4f5a8f581d530f.tar.bz2
strongswan-03ffa88531c33005bd60ba733b4f5a8f581d530f.tar.xz
Add extra information in debug output for IKE_SA check{out, in}
This output helps tracing checkout and checkin of IKE_SAs when there is more than one IKE_SAs with the same name. I also added the type of in-air-exchange to the debug output issued by the task_manager in case a task initiation is delayed, came in handy for me.
Diffstat (limited to 'src/libcharon/sa/task_manager.c')
-rw-r--r--src/libcharon/sa/task_manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcharon/sa/task_manager.c b/src/libcharon/sa/task_manager.c
index 8bf6d4d51..8857186f9 100644
--- a/src/libcharon/sa/task_manager.c
+++ b/src/libcharon/sa/task_manager.c
@@ -291,7 +291,8 @@ METHOD(task_manager_t, initiate, status_t,
if (this->initiating.type != EXCHANGE_TYPE_UNDEFINED)
{
- DBG2(DBG_IKE, "delaying task initiation, exchange in progress");
+ DBG2(DBG_IKE, "delaying task initiation, %N exchange in progress",
+ exchange_type_names, this->initiating.type);
/* do not initiate if we already have a message in the air */
return SUCCESS;
}