svn commit: r213375 - stable/8/sys/geom/part

Andrey V. Elsukov ae at FreeBSD.org
Sat Oct 2 22:18:36 UTC 2010


Author: ae
Date: Sat Oct  2 22:18:36 2010
New Revision: 213375
URL: http://svn.freebsd.org/changeset/base/213375

Log:
  MFC r212706 (by pjd):
    Change message when setting or unsetting attribute to be less confusing.
    Before:
  
    	ada0 has <attrib> set
  
    After:
  
    	<attrib> set on ada0
  
  Approved by:	kib (mentor)

Modified:
  stable/8/sys/geom/part/g_part.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/geom/part/g_part.c
==============================================================================
--- stable/8/sys/geom/part/g_part.c	Sat Oct  2 22:15:57 2010	(r213374)
+++ stable/8/sys/geom/part/g_part.c	Sat Oct  2 22:18:36 2010	(r213375)
@@ -1091,9 +1091,10 @@ g_part_ctl_setunset(struct gctl_req *req
 	/* Provide feedback if so requested. */
 	if (gpp->gpp_parms & G_PART_PARM_OUTPUT) {
 		sb = sbuf_new_auto();
-		G_PART_FULLNAME(table, entry, sb, gp->name);
-		sbuf_printf(sb, " has %s %sset\n", gpp->gpp_attrib,
+		sbuf_printf(sb, "%s %sset on ", gpp->gpp_attrib,
 		    (set) ? "" : "un");
+		G_PART_FULLNAME(table, entry, sb, gp->name);
+		sbuf_printf(sb, "\n");
 		sbuf_finish(sb);
 		gctl_set_param(req, "output", sbuf_data(sb), sbuf_len(sb) + 1);
 		sbuf_delete(sb);


More information about the svn-src-stable-8 mailing list