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/nop | |
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/nop')
-rw-r--r-- | sys/geom/nop/g_nop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/nop/g_nop.c b/sys/geom/nop/g_nop.c index c43fb2d..099df49 100644 --- a/sys/geom/nop/g_nop.c +++ b/sys/geom/nop/g_nop.c @@ -215,7 +215,7 @@ g_nop_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp, return (EEXIST); } } - gp = g_new_geomf(mp, name); + gp = g_new_geomf(mp, "%s", name); sc = g_malloc(sizeof(*sc), M_WAITOK); sc->sc_offset = offset; sc->sc_explicitsize = explicitsize; @@ -233,7 +233,7 @@ g_nop_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp, gp->access = g_nop_access; gp->dumpconf = g_nop_dumpconf; - newpp = g_new_providerf(gp, gp->name); + newpp = g_new_providerf(gp, "%s", gp->name); newpp->mediasize = size; newpp->sectorsize = secsize; |