Mercurial > hg > waaad
changeset 296:001d4b6885ff
Added configuration dump in app_test extension
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 05 Jan 2009 18:36:29 +0900 |
parents | cdf10ce8e08d |
children | a3e7032becb1 |
files | extensions/app_test/app_test.c |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/app_test/app_test.c Mon Dec 22 15:41:58 2008 +0900 +++ b/extensions/app_test/app_test.c Mon Jan 05 18:36:29 2009 +0900 @@ -62,6 +62,20 @@ return 0; } +static void conf_dump(void) +{ + TRACE_DEBUG(FULL, "------- app_test configuration dump: ---------"); + TRACE_DEBUG(FULL, " Vendor Id .......... : %u", atst_conf->vendor_id); + TRACE_DEBUG(FULL, " Application Id ..... : %u", atst_conf->appli_id); + TRACE_DEBUG(FULL, " Command Id ......... : %u", atst_conf->cmd_id); + TRACE_DEBUG(FULL, " AVP Id ............. : %u", atst_conf->avp_id); + TRACE_DEBUG(FULL, " Mode ............... : %s%s", atst_conf->mode & MODE_SERV ? "Serv" : "", atst_conf->mode & MODE_CLI ? "Cli" : "" ); + TRACE_DEBUG(FULL, " Destination Realm .. : %s", atst_conf->dest_realm ?: "- none -"); + TRACE_DEBUG(FULL, " Destination Host ... : %s", atst_conf->dest_host ?: "- none -"); + TRACE_DEBUG(FULL, " Signal ............. : %i", atst_conf->signal); + TRACE_DEBUG(FULL, "------- /app_test configuration dump ---------"); +} + /* entry point */ static int entry(char * conffile) { @@ -74,6 +88,7 @@ if (conffile != NULL) { CHECK( conf_parse(conffile) ); } + conf_dump(); /* Install objects definitions for this test application */ CHECK( dict_init() );