summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/clvmd.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-07-20 15:38:19 +0000
committerJim Meyering <jim@meyering.net>2007-07-20 15:38:19 +0000
commitbbcd24607cc3e4a29abe39a93e0566554b9fb16a (patch)
tree6bc41c5f420e898a57593c7db9dff8ec279336f0 /daemons/clvmd/clvmd.h
parente732de541e4010c975ace2c86e1896a1f282a9bd (diff)
downloadlvm2-bbcd24607cc3e4a29abe39a93e0566554b9fb16a.tar.gz
lvm2-bbcd24607cc3e4a29abe39a93e0566554b9fb16a.tar.xz
lvm2-bbcd24607cc3e4a29abe39a93e0566554b9fb16a.zip
Use gcc's printf attribute wherever possible.
* daemons/clvmd/clvmd.h (debuglog): Add __attribute__((printf)). * lib/config/config.c (_line_append): Likewise. * lib/misc/lvm-string.h (emit_to_buffer): Likewise.
Diffstat (limited to 'daemons/clvmd/clvmd.h')
-rw-r--r--daemons/clvmd/clvmd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/clvmd/clvmd.h b/daemons/clvmd/clvmd.h
index 8842936b..98c40cee 100644
--- a/daemons/clvmd/clvmd.h
+++ b/daemons/clvmd/clvmd.h
@@ -115,7 +115,8 @@ extern int add_client(struct local_client *new_client);
extern void clvmd_cluster_init_completed(void);
extern void process_message(struct local_client *client, const char *buf,
int len, const char *csid);
-extern void debuglog(const char *fmt, ... );
+extern void debuglog(const char *fmt, ... )
+ __attribute__ ((format(printf, 1, 2)));
int sync_lock(const char *resource, int mode, int flags, int *lockid);
int sync_unlock(const char *resource, int lockid);