From 25dd09b99661e08017f7e5059f2aaa0a95cb0e65 Mon Sep 17 00:00:00 2001 From: jh Date: Tue, 20 Nov 2012 12:32:18 +0000 Subject: - 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 --- sys/vm/swap_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/swap_pager.c') diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 9aa7802..44bff25 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -2612,7 +2612,7 @@ swapongeom_ev(void *arg, int flags) } mtx_unlock(&sw_dev_mtx); if (gp == NULL) - gp = g_new_geomf(&g_swap_class, "swap", NULL); + gp = g_new_geomf(&g_swap_class, "swap"); cp = g_new_consumer(gp); g_attach(cp, pp); /* -- cgit v1.1