use singular form
[strongswan.git] / src / libcharon / plugins / tnc_imv / tnc_imv.c
index fe628ee..f9cfc34 100644 (file)
@@ -125,8 +125,8 @@ METHOD(imv_t, set_message_types, void,
                memcpy(this->supported_types, supported_types, size);
        }
        *pos = '\0';
                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);
 
        /* lock the imv_t instance */
        this->mutex->unlock(this->mutex);