Author: mav Date: Tue Jun 5 16:46:34 2012 New Revision: 236619 URL: http://svn.freebsd.org/changeset/base/236619
Log: Add missing newlines into XML output. MFC after: 3 days Sponsored by: iXsystems, Inc. Modified: head/sys/geom/multipath/g_multipath.c Modified: head/sys/geom/multipath/g_multipath.c ============================================================================== --- head/sys/geom/multipath/g_multipath.c Tue Jun 5 16:16:33 2012 (r236618) +++ head/sys/geom/multipath/g_multipath.c Tue Jun 5 16:46:34 2012 (r236619) @@ -1314,7 +1314,7 @@ g_multipath_dumpconf(struct sbuf *sb, co if (sc == NULL) return; if (cp != NULL) { - sbuf_printf(sb, "%s<State>%s</State>", indent, + sbuf_printf(sb, "%s<State>%s</State>\n", indent, (cp->index & MP_NEW) ? "NEW" : (cp->index & MP_LOST) ? "LOST" : (cp->index & MP_FAIL) ? "FAIL" : @@ -1323,17 +1323,17 @@ g_multipath_dumpconf(struct sbuf *sb, co sc->sc_active_active == 2 ? "READ" : "PASSIVE"); } else { good = g_multipath_good(gp); - sbuf_printf(sb, "%s<State>%s</State>", indent, + sbuf_printf(sb, "%s<State>%s</State>\n", indent, good == 0 ? "BROKEN" : (good != sc->sc_ndisks || sc->sc_ndisks == 1) ? "DEGRADED" : "OPTIMAL"); } if (cp == NULL && pp == NULL) { - sbuf_printf(sb, "%s<UUID>%s</UUID>", indent, sc->sc_uuid); - sbuf_printf(sb, "%s<Mode>Active/%s</Mode>", indent, + sbuf_printf(sb, "%s<UUID>%s</UUID>\n", indent, sc->sc_uuid); + sbuf_printf(sb, "%s<Mode>Active/%s</Mode>\n", indent, sc->sc_active_active == 2 ? "Read" : sc->sc_active_active == 1 ? "Active" : "Passive"); - sbuf_printf(sb, "%s<Type>%s</Type>", indent, + sbuf_printf(sb, "%s<Type>%s</Type>\n", indent, sc->sc_uuid[0] == 0 ? "MANUAL" : "AUTOMATIC"); } } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"