aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/cache/g_cache.c
diff options
context:
space:
mode:
authorWuyang Chung <wy-chung@outlook.com>2025-07-29 03:42:24 +0000
committerWarner Losh <imp@FreeBSD.org>2025-09-05 18:42:21 +0000
commit656f7f43f204ad1e6956f8257f66b50e032a6c61 (patch)
tree126c633f96d3314ef8d97581c72b2a30ffd73311 /sys/geom/cache/g_cache.c
parent1167a7d065f8a6265cc8e28025944a2f848e3a7e (diff)
Diffstat (limited to 'sys/geom/cache/g_cache.c')
-rw-r--r--sys/geom/cache/g_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/cache/g_cache.c b/sys/geom/cache/g_cache.c
index 9d0b10f4192e..c6b80786ade5 100644
--- a/sys/geom/cache/g_cache.c
+++ b/sys/geom/cache/g_cache.c
@@ -504,7 +504,7 @@ g_cache_create(struct g_class *mp, struct g_provider *pp,
return (NULL);
}
- gp = g_new_geomf(mp, "%s", md->md_name);
+ gp = g_new_geom(mp, md->md_name);
sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO);
sc->sc_type = type;
sc->sc_bshift = bshift;
@@ -665,7 +665,7 @@ g_cache_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
G_CACHE_DEBUG(3, "Tasting %s.", pp->name);
- gp = g_new_geomf(mp, "cache:taste");
+ gp = g_new_geom(mp, "cache:taste");
gp->start = g_cache_start;
gp->orphan = g_cache_orphan;
gp->access = g_cache_access;