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/geom/geom_slice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/geom/geom_slice.h') diff --git a/sys/geom/geom_slice.h b/sys/geom/geom_slice.h index cb7fbab..de0c9b0 100644 --- a/sys/geom/geom_slice.h +++ b/sys/geom/geom_slice.h @@ -69,7 +69,7 @@ struct g_slicer { }; g_dumpconf_t g_slice_dumpconf; -int g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...); +int g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...) __printflike(7, 8); void g_slice_spoiled(struct g_consumer *cp); void g_slice_orphan(struct g_consumer *cp); #define G_SLICE_CONFIG_CHECK 0 -- cgit v1.1