summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/geom/geom_bsd.c4
1 files changed, 2 insertions, 2 deletions
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++) {
OpenPOWER on IntegriCloud