Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix more "symbol XXX found in none of the libs" warnings
[vpp.git]
/
gmod
/
gmod
/
mod_vpp.c
diff --git
a/gmod/gmod/mod_vpp.c
b/gmod/gmod/mod_vpp.c
index
4a82ca7
..
71479d2
100644
(file)
--- a/
gmod/gmod/mod_vpp.c
+++ b/
gmod/gmod/mod_vpp.c
@@
-21,7
+21,7
@@
#include <vppinfra/clib.h>
#include <vppinfra/vec.h>
#include <vppinfra/hash.h>
#include <vppinfra/clib.h>
#include <vppinfra/vec.h>
#include <vppinfra/hash.h>
-#include <svmdb.h>
+#include <svm
/svm
db.h>
#include <errno.h>
mmodule vpp_module;
#include <errno.h>
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;
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) {
int i;
if (str_params) {
-
debug_ms
g("[mod_vpp]Received string params: %s", str_params);
+
clib_warnin
g("[mod_vpp]Received string params: %s", str_params);
}
/* Multiple name/value pair parameters. */
if (list_params) {
}
/* Multiple name/value pair parameters. */
if (list_params) {
-
debug_ms
g("[mod_vpp]Received following params list: ");
+
clib_warnin
g("[mod_vpp]Received following params list: ");
params = (mmparam*) list_params->elts;
for(i=0; i< list_params->nelts; i++) {
params = (mmparam*) list_params->elts;
for(i=0; i< list_params->nelts; i++) {
-
debug_ms
g("\tParam: %s = %s", params[i].name, params[i].value);
+
clib_warnin
g("\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
/* Initialize the metadata storage for each of the metrics and then