diff options
author | scottl <scottl@FreeBSD.org> | 2013-07-19 06:42:15 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2013-07-19 06:42:15 +0000 |
commit | 7dbfd863d4e1dcba1978d736ffc507f0e23eaf26 (patch) | |
tree | 8cb25d3cba402a1dc42cfbdc70a1a4eb79cc3529 /lib/libgeom | |
parent | 61d6ee86f76db7ef69b0748be4d4b6e14ffc7109 (diff) | |
download | FreeBSD-src-7dbfd863d4e1dcba1978d736ffc507f0e23eaf26.zip FreeBSD-src-7dbfd863d4e1dcba1978d736ffc507f0e23eaf26.tar.gz |
Since there's no defined schema for the XML that's generated by the
kern.geom.confxml sysctl, it's silly to warn about tags in libgeom,
especially since libgeom exists simply to build a tree out of the conf
information.
Obtained from: Netflix
MFC after: 3 days
Diffstat (limited to 'lib/libgeom')
-rw-r--r-- | lib/libgeom/geom_xml2tree.c | 2 | ||||
-rw-r--r-- | lib/libgeom/libgeom.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c index 02be019..2874cd0 100644 --- a/lib/libgeom/geom_xml2tree.c +++ b/lib/libgeom/geom_xml2tree.c @@ -282,7 +282,9 @@ EndElement(void *userData, const char *name) } if (p != NULL) { +#if DEBUG_LIBGEOM > 0 printf("Unexpected XML: name=%s data=\"%s\"\n", name, p); +#endif free(p); } diff --git a/lib/libgeom/libgeom.h b/lib/libgeom/libgeom.h index c951f25..73d4335 100644 --- a/lib/libgeom/libgeom.h +++ b/lib/libgeom/libgeom.h @@ -40,6 +40,10 @@ __BEGIN_DECLS +#ifndef DEBUG_LIBGEOM +#define DEBUG_LIBGEOM 0 +#endif + void geom_stats_close(void); void geom_stats_resync(void); int geom_stats_open(void); |