display ID of registered IMCs/IMVs
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 10 Nov 2010 20:30:50 +0000 (21:30 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 10 Nov 2010 20:30:50 +0000 (21:30 +0100)
src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c
src/libcharon/plugins/tnc_imv/tnc_imv_plugin.c

index 683efc1..b6effba 100644 (file)
@@ -133,7 +133,8 @@ static bool load_imcs(char *filename)
                        imc->destroy(imc);
                        return FALSE;
                }
-               DBG1(DBG_TNC, "IMC \"%s\" loaded from '%s'", name, path);
+               DBG1(DBG_TNC, "IMC %u \"%s\" loaded from '%s'", imc->get_id(imc),
+                                                                                                               name, path);
        }
        munmap(addr, sb.st_size);
        close(fd);
index 5416265..52c39a8 100644 (file)
@@ -133,7 +133,8 @@ static bool load_imvs(char *filename)
                        imv->destroy(imv);
                        return FALSE;
                }
-               DBG1(DBG_TNC, "IMV \"%s\" loaded from '%s'", name, path);
+               DBG1(DBG_TNC, "IMV %u \"%s\" loaded from '%s'", imv->get_id(imv),
+                                                                                                               name, path);
        }
        munmap(addr, sb.st_size);
        close(fd);