summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.h
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/geom_slice.h
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/geom_slice.h')
-rw-r--r--sys/geom/geom_slice.h2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud