aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/cache
diff options
context:
space:
mode:
authorJaakko Heinonen <jh@FreeBSD.org>2012-11-20 12:32:18 +0000
committerJaakko Heinonen <jh@FreeBSD.org>2012-11-20 12:32:18 +0000
commit02c62349c93f29b881498630c7a0623540255764 (patch)
treed75016205cbfeb373d0f3a16c6943a09f85df034 /sys/geom/cache
parent7a4385053091e8cb67bcabb24e9b850162f2750a (diff)
Notes
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 378c2f2692037..ba701acff181a 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;