summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom.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.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.h')
-rw-r--r--sys/geom/geom.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index 75bfcc2..351b05d 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -271,8 +271,10 @@ int g_handleattr_int(struct bio *bp, const char *attribute, int val);
int g_handleattr_off_t(struct bio *bp, const char *attribute, off_t val);
int g_handleattr_str(struct bio *bp, const char *attribute, const char *str);
struct g_consumer * g_new_consumer(struct g_geom *gp);
-struct g_geom * g_new_geomf(struct g_class *mp, const char *fmt, ...);
-struct g_provider * g_new_providerf(struct g_geom *gp, const char *fmt, ...);
+struct g_geom * g_new_geomf(struct g_class *mp, const char *fmt, ...)
+ __printflike(2, 3);
+struct g_provider * g_new_providerf(struct g_geom *gp, const char *fmt, ...)
+ __printflike(2, 3);
void g_resize_provider(struct g_provider *pp, off_t size);
int g_retaste(struct g_class *mp);
void g_spoil(struct g_provider *pp, struct g_consumer *cp);
OpenPOWER on IntegriCloud