From 2f4e9a099b0bcecd685884b53dd7f6bd597c5228 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Wed, 15 Sep 2010 20:59:13 +0000 Subject: [PATCH] Make the message that informs about bootcode being written to disk less confusing. Note there is still no information about 'partcode' being written to disk (gpart bootcode -p ). Maybe in the future all the messages printed by gpart(8) on success could be hidden under -v? PR: bin/150239 Reported by: Roddi Submitted by: arundel MFC after: 2 weeks --- sys/geom/part/g_part.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index 5e1847885cd2..b08548d5e8dd 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -636,7 +636,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 written to %s\n", gp->name); sbuf_finish(sb); gctl_set_param(req, "output", sbuf_data(sb), sbuf_len(sb) + 1); sbuf_delete(sb); @@ -1032,7 +1032,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)