Trivial patch to show on which geom has the error been detected.

Submitted by:	Rick C. Petty
Approved by:	gnn (mentor)
MFC after:	1 month
This commit is contained in:
Ivan Voras 2008-12-01 15:02:00 +00:00
parent f34015d47b
commit 499c86ebd5

View file

@ -136,7 +136,8 @@ g_bsd_modify(struct g_geom *gp, u_char *label)
}
if (rawoffset != 0 && (off_t)rawoffset != ms->mbroffset)
printf("WARNING: Expected rawoffset %jd, found %jd\n",
printf("WARNING: %s expected rawoffset %jd, found %jd\n",
gp->name,
(intmax_t)ms->mbroffset/dl.d_secsize,
(intmax_t)rawoffset/dl.d_secsize);