diff options
author | Amar Tumballi <amar@gluster.com> | 2011-03-16 09:38:28 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-17 11:57:17 -0700 |
commit | 924d2ed32d19a2a0014f803edd3d4511a0af99c2 (patch) | |
tree | 56ac7c904ee454bf9e16c4fd173a6e2906375d25 /libglusterfs/src/statedump.h | |
parent | ebe47d5dae42da18b289e7be44eb67a8157a56b1 (diff) |
libglusterfs: all header files updated
* whitespace cleanup (M-x whitespace-cleanup)
* indentation fixes (M-x indent-region)
* replaced tab with spaces (M-x untabify)
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2346 (Log message enhancements in GlusterFS - phase 1)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'libglusterfs/src/statedump.h')
-rw-r--r-- | libglusterfs/src/statedump.h | 42 |
1 files changed, 16 insertions, 26 deletions
diff --git a/libglusterfs/src/statedump.h b/libglusterfs/src/statedump.h index 5e106d89769..bb537c305bf 100644 --- a/libglusterfs/src/statedump.h +++ b/libglusterfs/src/statedump.h @@ -19,7 +19,7 @@ #ifndef STATEDUMP_H -#define STATEDUMP_H +#define STATEDUMP_H #include <stdarg.h> #include "inode.h" @@ -58,43 +58,33 @@ void _gf_proc_dump_build_key (char *key, const char *prefix, char *fmt,...) va_start(ap, fmt); vsnprintf(buf, GF_DUMP_MAX_BUF_LEN, fmt, ap); va_end(ap); - snprintf(key, GF_DUMP_MAX_BUF_LEN, "%s.%s", prefix, buf); + snprintf(key, GF_DUMP_MAX_BUF_LEN, "%s.%s", prefix, buf); } -#define gf_proc_dump_build_key(key, key_prefix, fmt...) \ -{\ - _gf_proc_dump_build_key(key, key_prefix, ##fmt);\ -} +#define gf_proc_dump_build_key(key, key_prefix, fmt...) \ + { \ + _gf_proc_dump_build_key(key, key_prefix, ##fmt); \ + } #define GF_PROC_DUMP_SET_OPTION(opt,val) opt = val -void -gf_proc_dump_init(); +void gf_proc_dump_init(); -void -gf_proc_dump_fini(void); +void gf_proc_dump_fini(void); -void -gf_proc_dump_cleanup(void); +void gf_proc_dump_cleanup(void); -void -gf_proc_dump_info(int signum); +void gf_proc_dump_info(int signum); -void -gf_proc_dump_add_section(char *key,...); +void gf_proc_dump_add_section(char *key,...); -void -gf_proc_dump_write(char *key, char *value,...); +void gf_proc_dump_write(char *key, char *value,...); -void -inode_table_dump(inode_table_t *itable, char *prefix); +void inode_table_dump(inode_table_t *itable, char *prefix); -void -fdtable_dump(fdtable_t *fdtable, char *prefix); +void fdtable_dump(fdtable_t *fdtable, char *prefix); -void -inode_dump(inode_t *inode, char *prefix); +void inode_dump(inode_t *inode, char *prefix); -void -glusterd_init (int sig); +void glusterd_init (int sig); #endif /* STATEDUMP_H */ |