diff options
author | phk <phk@FreeBSD.org> | 2003-05-06 19:36:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-06 19:36:13 +0000 |
commit | 3cc52c15ece1045f70bbf6c647d528e6ecfcc18b (patch) | |
tree | b924276f1aada92c47e911929435449d1ef9f398 | |
parent | cbf2af31a0d41bca513fe1aae9663c30103259bb (diff) | |
download | FreeBSD-src-3cc52c15ece1045f70bbf6c647d528e6ecfcc18b.zip FreeBSD-src-3cc52c15ece1045f70bbf6c647d528e6ecfcc18b.tar.gz |
Fix the WARNING for wrong rawoffset, I tested incompatible units.
Approved by: re/jhb
-rw-r--r-- | sys/geom/geom_bsd.c | 4 |
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++) { |