diff options
-rw-r--r-- | src/libcharon/plugins/tnc_imc/tnc_imc.c | 4 | ||||
-rw-r--r-- | src/libcharon/plugins/tnc_imv/tnc_imv.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libcharon/plugins/tnc_imc/tnc_imc.c b/src/libcharon/plugins/tnc_imc/tnc_imc.c index d7fc2c65d..52e526604 100644 --- a/src/libcharon/plugins/tnc_imc/tnc_imc.c +++ b/src/libcharon/plugins/tnc_imc/tnc_imc.c @@ -124,8 +124,8 @@ METHOD(imc_t, set_message_types, void, memcpy(this->supported_types, supported_types, size); } *pos = '\0'; - DBG2(DBG_TNC, "IMC %u supports %u message types:%s", - this->id, type_count, buf); + DBG2(DBG_TNC, "IMC %u supports %u message type%s:%s", + this->id, type_count, (type_count == 1) ? "":"s", buf); /* lock the imc_t instance */ this->mutex->unlock(this->mutex); diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv.c b/src/libcharon/plugins/tnc_imv/tnc_imv.c index fe628ee7e..f9cfc3417 100644 --- a/src/libcharon/plugins/tnc_imv/tnc_imv.c +++ b/src/libcharon/plugins/tnc_imv/tnc_imv.c @@ -125,8 +125,8 @@ METHOD(imv_t, set_message_types, void, memcpy(this->supported_types, supported_types, size); } *pos = '\0'; - DBG2(DBG_TNC, "IMV %u supports %u message types:%s", - this->id, type_count, buf); + DBG2(DBG_TNC, "IMV %u supports %u message type%s:%s", + this->id, type_count, (type_count == 1) ? "":"s", buf); /* lock the imv_t instance */ this->mutex->unlock(this->mutex); |