diff options
author | pjd <pjd@FreeBSD.org> | 2004-02-02 17:50:09 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-02-02 17:50:09 +0000 |
commit | 35dc7138a208df9c5fe6c8882999b8313df91fa0 (patch) | |
tree | 875b1fdb493b14edc8c0c8181134823896ec6a14 /sys/geom | |
parent | 16b5363af41959e5666aa24ecb5813c0d51760a0 (diff) | |
download | FreeBSD-src-35dc7138a208df9c5fe6c8882999b8313df91fa0.zip FreeBSD-src-35dc7138a208df9c5fe6c8882999b8313df91fa0.tar.gz |
- Use proper names in KASSERTs.
- Typos.
Approved by: phk, scottl (mentor)
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_subr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 734c0a6..0d6d24c 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -374,11 +374,11 @@ g_new_providerf(struct g_geom *gp, const char *fmt, ...) g_topology_assert(); KASSERT(gp->start != NULL, - ("new provider on geom(%s) without ->start (class:%s)", - gp->class->name, gp->class->name)); + ("new provider on geom(%s) without ->start (class %s)", + gp->name, gp->class->name)); KASSERT(!(gp->flags & G_GEOM_WITHER), - ("new provider on WITHERing geom(%s) (class:%s)", - gp->class->name, gp->class->name)); + ("new provider on WITHERing geom(%s) (class %s)", + gp->name, gp->class->name)); sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); va_start(ap, fmt); sbuf_vprintf(sb, fmt, ap); @@ -605,8 +605,8 @@ g_access_rel(struct g_consumer *cp, int dcr, int dcw, int dce) */ if (cp->geom->spoiled != NULL && cp->spoiled) { KASSERT(dcr <= 0, ("spoiled but dcr = %d", dcr)); - KASSERT(dcw <= 0, ("spoiled but dce = %d", dcw)); - KASSERT(dce <= 0, ("spoiled but dcw = %d", dce)); + KASSERT(dcw <= 0, ("spoiled but dcw = %d", dcw)); + KASSERT(dce <= 0, ("spoiled but dce = %d", dce)); } /* |