Date: Fri, 19 Jul 2013 06:42:15 +0000 (UTC) From: Scott Long <scottl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253469 - head/lib/libgeom Message-ID: <201307190642.r6J6gFDP046314@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307190642.r6J6gFDP046314>