summaryrefslogtreecommitdiff
path: root/lib/libgeom
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2013-07-19 06:42:15 +0000
committerScott Long <scottl@FreeBSD.org>2013-07-19 06:42:15 +0000
commit748e404f265fbf5c868b090f03da1bae6bb12d4e (patch)
tree8cb25d3cba402a1dc42cfbdc70a1a4eb79cc3529 /lib/libgeom
parent750288f3432967395b04947b65877336aec60d1f (diff)
downloadsrc-test2-748e404f265fbf5c868b090f03da1bae6bb12d4e.tar.gz
src-test2-748e404f265fbf5c868b090f03da1bae6bb12d4e.zip
Notes
Diffstat (limited to 'lib/libgeom')
-rw-r--r--lib/libgeom/geom_xml2tree.c2
-rw-r--r--lib/libgeom/libgeom.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c
index 02be01991c1e..2874cd0abd9c 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 c951f25babfe..73d43352ee84 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);