X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=gmod%2Fgmod%2Fmod_vpp.c;h=71479d2afba9ff1e6f1f912c72db36623a8737a6;hb=f15866146adcf3273da6f29f05d42193c7af4b07;hp=4a82ca70f13b4fc6771d03f433ecc475a51bbf3c;hpb=cbed90c8cbf8449ff8ed6da08ec248f1e49a374d;p=vpp.git diff --git a/gmod/gmod/mod_vpp.c b/gmod/gmod/mod_vpp.c index 4a82ca70f13..71479d2afba 100644 --- a/gmod/gmod/mod_vpp.c +++ b/gmod/gmod/mod_vpp.c @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include mmodule vpp_module; @@ -33,21 +33,25 @@ static int vpp_metric_init (apr_pool_t *p) apr_array_header_t *list_params = vpp_module.module_params_list; mmparam *params; char *chroot_path = 0; + svmdb_map_args_t _ma, *ma= &_ma; int i; if (str_params) { - debug_msg("[mod_vpp]Received string params: %s", str_params); + clib_warning("[mod_vpp]Received string params: %s", str_params); } /* Multiple name/value pair parameters. */ if (list_params) { - debug_msg("[mod_vpp]Received following params list: "); + clib_warning("[mod_vpp]Received following params list: "); params = (mmparam*) list_params->elts; for(i=0; i< list_params->nelts; i++) { - debug_msg("\tParam: %s = %s", params[i].name, params[i].value); + clib_warning("\tParam: %s = %s", params[i].name, params[i].value); } } - svmdb_client = svmdb_map_chroot (chroot_path); + memset (ma, 0, sizeof (*ma)); + ma->root_path = (char *)chroot_path; + + svmdb_client = svmdb_map (ma); /* Initialize the metadata storage for each of the metrics and then