From 3cc52c15ece1045f70bbf6c647d528e6ecfcc18b Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 6 May 2003 19:36:13 +0000 Subject: Fix the WARNING for wrong rawoffset, I tested incompatible units. Approved by: re/jhb --- sys/geom/geom_bsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/geom/geom_bsd.c') diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 3adc4a9..89b9a30 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -142,10 +142,10 @@ g_bsd_modify(struct g_geom *gp, u_char *label) rawoffset = 0; } - if (rawoffset != 0 && (off_t)rawoffset * dl.d_secsize != ms->mbroffset) + if (rawoffset != 0 && (off_t)rawoffset != ms->mbroffset) printf("WARNING: Expected rawoffset %jd, found %jd\n", (intmax_t)ms->mbroffset/dl.d_secsize, - (intmax_t)ms->rawoffset); + (intmax_t)rawoffset/dl.d_secsize); /* Don't munge open partitions. */ for (i = 0; i < dl.d_npartitions; i++) { -- cgit v1.1