summaryrefslogtreecommitdiffstats
path: root/sys/geom/cache
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2012-11-20 12:32:18 +0000
committerjh <jh@FreeBSD.org>2012-11-20 12:32:18 +0000
commit25dd09b99661e08017f7e5059f2aaa0a95cb0e65 (patch)
treed75016205cbfeb373d0f3a16c6943a09f85df034 /sys/geom/cache
parent7df2814837ae2585cc6b0a8006fd6b2ff6c4bdcc (diff)
downloadFreeBSD-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/cache')
-rw-r--r--sys/geom/cache/g_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/cache/g_cache.c b/sys/geom/cache/g_cache.c
index 378c2f2..ba701ac 100644
--- a/sys/geom/cache/g_cache.c
+++ b/sys/geom/cache/g_cache.c
@@ -502,7 +502,7 @@ g_cache_create(struct g_class *mp, struct g_provider *pp,
return (NULL);
}
- gp = g_new_geomf(mp, md->md_name);
+ gp = g_new_geomf(mp, "%s", md->md_name);
sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO);
sc->sc_type = type;
sc->sc_bshift = bshift;
OpenPOWER on IntegriCloud