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/geom_dev.c | |
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/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index a32aaa1..224b5d6 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -176,7 +176,7 @@ g_dev_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) g_trace(G_T_TOPOLOGY, "dev_taste(%s,%s)", mp->name, pp->name); g_topology_assert(); - gp = g_new_geomf(mp, pp->name); + gp = g_new_geomf(mp, "%s", pp->name); cp = g_new_consumer(gp); error = g_attach(cp, pp); KASSERT(error == 0, |