aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/tnccs_20/tnccs_20.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-12-10 11:54:51 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-12-10 11:55:02 +0100
commit755f2419a586f6f7b49ed761613260de4a806f6a (patch)
treef53f94338495fbb9355ef5fd9f6933fd1a90b804 /src/libcharon/plugins/tnccs_20/tnccs_20.c
parentcf5866b9c0b0a96a4976aa3819c08dc02803a950 (diff)
downloadstrongswan-755f2419a586f6f7b49ed761613260de4a806f6a.tar.bz2
strongswan-755f2419a586f6f7b49ed761613260de4a806f6a.tar.xz
debug cosmetics
Diffstat (limited to 'src/libcharon/plugins/tnccs_20/tnccs_20.c')
-rw-r--r--src/libcharon/plugins/tnccs_20/tnccs_20.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/libcharon/plugins/tnccs_20/tnccs_20.c b/src/libcharon/plugins/tnccs_20/tnccs_20.c
index 48d7c93dd..8bf88a270 100644
--- a/src/libcharon/plugins/tnccs_20/tnccs_20.c
+++ b/src/libcharon/plugins/tnccs_20/tnccs_20.c
@@ -195,31 +195,38 @@ static status_t handle_messages(private_tnccs_20_t *this, pb_tnc_batch_t *batch)
if (vendor_id == IETF_VENDOR_ID)
{
- DBG1(DBG_TNC, "%s PB-TNC Error: %N",
- fatal ? "fatal" : "non-fatal",
- pb_tnc_error_code_names, error_code);
-
switch (error_code)
{
case PB_ERROR_INVALID_PARAMETER:
case PB_ERROR_UNSUPPORTED_MANDATORY_MESSAGE:
- DBG1(DBG_TNC, " at an offset of %u bytes",
+ DBG1(DBG_TNC, "received %s PB-TNC Error '%N' "
+ "(offset %u bytes)",
+ fatal ? "fatal" : "non-fatal",
+ pb_tnc_error_code_names, error_code,
err_msg->get_offset(err_msg));
break;
case PB_ERROR_VERSION_NOT_SUPPORTED:
- DBG1(DBG_TNC, " with bad version 0x%02x",
+ DBG1(DBG_TNC, "received %s PB-TNC Error '%N' "
+ "caused by bad version 0x%02x",
+ fatal ? "fatal" : "non-fatal",
+ pb_tnc_error_code_names, error_code,
err_msg->get_bad_version(err_msg));
break;
case PB_ERROR_UNEXPECTED_BATCH_TYPE:
case PB_ERROR_LOCAL_ERROR:
default:
+ DBG1(DBG_TNC, "received %s PB-TNC Error '%N'",
+ fatal ? "fatal" : "non-fatal",
+ pb_tnc_error_code_names, error_code);
break;
}
}
else
{
- DBG1(DBG_TNC, "%s PB-TNC Error (%u) with Vendor ID 0x%06x",
- fatal ? "fatal" : "non-fatal", error_code, vendor_id);
+ DBG1(DBG_TNC, "received %s PB-TNC Error (%u) "
+ "with Vendor ID 0x%06x",
+ fatal ? "fatal" : "non-fatal",
+ error_code, vendor_id);
}
break;
}