svn commit: r253469 - head/lib/libgeom
Scott Long
scottl at FreeBSD.org
Fri Jul 19 06:42:16 UTC 2013
Author: scottl
Date: Fri Jul 19 06:42:15 2013
New Revision: 253469
URL: http://svnweb.freebsd.org/changeset/base/253469
Log:
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
Modified:
head/lib/libgeom/geom_xml2tree.c
head/lib/libgeom/libgeom.h
Modified: head/lib/libgeom/geom_xml2tree.c
==============================================================================
--- head/lib/libgeom/geom_xml2tree.c Fri Jul 19 05:48:36 2013 (r253468)
+++ head/lib/libgeom/geom_xml2tree.c Fri Jul 19 06:42:15 2013 (r253469)
@@ -282,7 +282,9 @@ EndElement(void *userData, const char *n
}
if (p != NULL) {
+#if DEBUG_LIBGEOM > 0
printf("Unexpected XML: name=%s data=\"%s\"\n", name, p);
+#endif
free(p);
}
Modified: head/lib/libgeom/libgeom.h
==============================================================================
--- head/lib/libgeom/libgeom.h Fri Jul 19 05:48:36 2013 (r253468)
+++ head/lib/libgeom/libgeom.h Fri Jul 19 06:42:15 2013 (r253469)
@@ -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);
More information about the svn-src-all
mailing list