bin/150239: gpart bootcode displays highly ambiguous message
Alexander Best
arundel at freebsd.org
Sun Sep 5 15:50:07 UTC 2010
The following reply was made to PR bin/150239; it has been noted by GNATS.
From: Alexander Best <arundel at freebsd.org>
To: bug-followup at freebsd.org
Cc:
Subject: Re: bin/150239: gpart bootcode displays highly ambiguous message
Date: Sun, 5 Sep 2010 15:42:33 +0000
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
this patch changes the output like you suggested. also my editor discovered an
unnecessary space in g_part.c ;)
cheers.
alex
--
a13x
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="g_part.c.diff"
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c
index b9fca08..5efe7ef 100644
--- a/sys/geom/part/g_part.c
+++ b/sys/geom/part/g_part.c
@@ -571,7 +571,7 @@ g_part_ctl_bootcode(struct gctl_req *req, struct g_part_parms *gpp)
/* Provide feedback if so requested. */
if (gpp->gpp_parms & G_PART_PARM_OUTPUT) {
sb = sbuf_new_auto();
- sbuf_printf(sb, "%s has bootcode\n", gp->name);
+ sbuf_printf(sb, "bootcode was written to %s\n", gp->name);
sbuf_finish(sb);
gctl_set_param(req, "output", sbuf_data(sb), sbuf_len(sb) + 1);
sbuf_delete(sb);
@@ -967,7 +967,7 @@ g_part_ctl_move(struct gctl_req *req, struct g_part_parms *gpp)
{
gctl_error(req, "%d verb 'move'", ENOSYS);
return (ENOSYS);
-}
+}
static int
g_part_ctl_recover(struct gctl_req *req, struct g_part_parms *gpp)
--lrZ03NoBR/3+SXJZ--
More information about the freebsd-geom
mailing list