diff options
author | jh <jh@FreeBSD.org> | 2012-11-20 12:32:18 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2012-11-20 12:32:18 +0000 |
commit | 25dd09b99661e08017f7e5059f2aaa0a95cb0e65 (patch) | |
tree | d75016205cbfeb373d0f3a16c6943a09f85df034 /sys/geom/bde | |
parent | 7df2814837ae2585cc6b0a8006fd6b2ff6c4bdcc (diff) | |
download | FreeBSD-src-25dd09b99661e08017f7e5059f2aaa0a95cb0e65.zip FreeBSD-src-25dd09b99661e08017f7e5059f2aaa0a95cb0e65.tar.gz |
- Don't pass geom and provider names as format strings.
- Add __printflike() attributes.
- Remove an extra argument for the g_new_geomf() call in swapongeom_ev().
Reviewed by: pjd
Diffstat (limited to 'sys/geom/bde')
-rw-r--r-- | sys/geom/bde/g_bde.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/bde/g_bde.c b/sys/geom/bde/g_bde.c index a6fcf2a..e882bb8 100644 --- a/sys/geom/bde/g_bde.c +++ b/sys/geom/bde/g_bde.c @@ -184,7 +184,7 @@ g_bde_create_geom(struct gctl_req *req, struct g_class *mp, struct g_provider *p /* XXX: error check */ kproc_create(g_bde_worker, gp, &sc->thread, 0, 0, "g_bde %s", gp->name); - pp = g_new_providerf(gp, gp->name); + pp = g_new_providerf(gp, "%s", gp->name); pp->stripesize = kp->zone_cont; pp->stripeoffset = 0; pp->mediasize = sc->mediasize; |