use singular form
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 29 May 2011 08:48:09 +0000 (10:48 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 29 May 2011 08:48:09 +0000 (10:48 +0200)
src/libcharon/plugins/tnc_imc/tnc_imc.c
src/libcharon/plugins/tnc_imv/tnc_imv.c

index d7fc2c6..52e5266 100644 (file)
@@ -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);
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';
-       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);