mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
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.
This commit is contained in:
parent
e732de541e
commit
bbcd24607c
@ -1,4 +1,5 @@
|
||||
Version 2.02.28 -
|
||||
Use gcc's printf attribute wherever possible.
|
||||
In _line_append, use "sizeof buf - 1" rather than equivalent "4095"
|
||||
Introduce is_same_inode macro, now including a comparison of st_dev.
|
||||
Don't leak a file descriptor in _lock_file(), when flock fails.
|
||||
|
@ -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);
|
||||
|
@ -360,6 +360,8 @@ static int _line_start(struct output_line *outline)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int _line_append(struct output_line *outline, const char *fmt, ...)
|
||||
__attribute__ ((format(printf, 2, 3)));
|
||||
static int _line_append(struct output_line *outline, const char *fmt, ...)
|
||||
{
|
||||
char buf[4096];
|
||||
|
@ -23,7 +23,8 @@
|
||||
|
||||
struct pool;
|
||||
|
||||
int emit_to_buffer(char **buffer, size_t *size, const char *fmt, ...);
|
||||
int emit_to_buffer(char **buffer, size_t *size, const char *fmt, ...)
|
||||
__attribute__ ((format(printf, 3, 4)));
|
||||
|
||||
char *build_dm_name(struct dm_pool *mem, const char *vg,
|
||||
const char *lv, const char *layer);
|
||||
|
Loading…
Reference in New Issue
Block a user