diff options
author | pjd <pjd@FreeBSD.org> | 2006-09-16 10:39:07 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-09-16 10:39:07 +0000 |
commit | f5e129df20c2b3984d81e96cfffd8fe2979a18be (patch) | |
tree | 573376825af68a6151de2e0dc5ac78ca0660077c /sys/geom/geom.h | |
parent | 7748ccf222463de662408b60a0d898405fe6d9f4 (diff) | |
download | FreeBSD-src-f5e129df20c2b3984d81e96cfffd8fe2979a18be.zip FreeBSD-src-f5e129df20c2b3984d81e96cfffd8fe2979a18be.tar.gz |
Add __printflike() to gctl_error().
Approved by: phk
MFC after: 1 week
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index 76ebcb6..5b55624 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -348,7 +348,7 @@ void gctl_set_param_err(struct gctl_req *req, const char *param, void const *ptr void *gctl_get_param(struct gctl_req *req, const char *param, int *len); char const *gctl_get_asciiparam(struct gctl_req *req, const char *param); void *gctl_get_paraml(struct gctl_req *req, const char *param, int len); -int gctl_error(struct gctl_req *req, const char *fmt, ...); +int gctl_error(struct gctl_req *req, const char *fmt, ...) __printflike(2, 3); struct g_class *gctl_get_class(struct gctl_req *req, char const *arg); struct g_geom *gctl_get_geom(struct gctl_req *req, struct g_class *mpr, char const *arg); struct g_provider *gctl_get_provider(struct gctl_req *req, char const *arg); |