diff options
author | Amar Tumballi <amar@gluster.com> | 2011-03-16 09:38:35 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-17 11:57:27 -0700 |
commit | 75bda6e41d9b244ab9d040a035582ea6bd4c8120 (patch) | |
tree | 1678cdbef24d4902ff8c7622d3f969c3d73eaf67 /libglusterfs/src/stack.c | |
parent | 858944850adf7ec04898a15db90e231655ac4965 (diff) |
libglusterfs/src/*.c: whitespace cleanup
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/stack.c')
-rw-r--r-- | libglusterfs/src/stack.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/libglusterfs/src/stack.c b/libglusterfs/src/stack.c index 53c21f7c625..3f8cf08c9b7 100644 --- a/libglusterfs/src/stack.c +++ b/libglusterfs/src/stack.c @@ -21,7 +21,7 @@ #include "stack.h" static inline -int call_frames_count (call_frame_t *call_frame) +int call_frames_count (call_frame_t *call_frame) { call_frame_t *pos; int32_t count = 0; @@ -38,7 +38,7 @@ int call_frames_count (call_frame_t *call_frame) void gf_proc_dump_call_frame (call_frame_t *call_frame, const char *key_buf,...) { - + char prefix[GF_DUMP_MAX_BUF_LEN]; va_list ap; char key[GF_DUMP_MAX_BUF_LEN]; @@ -53,24 +53,24 @@ gf_proc_dump_call_frame (call_frame_t *call_frame, const char *key_buf,...) memset(prefix, 0, sizeof(prefix)); memset(&my_frame, 0, sizeof(my_frame)); va_start(ap, key_buf); - vsnprintf(prefix, GF_DUMP_MAX_BUF_LEN, key_buf, ap); + vsnprintf(prefix, GF_DUMP_MAX_BUF_LEN, key_buf, ap); va_end(ap); ret = TRY_LOCK(&call_frame->lock); if (ret) { gf_log("", GF_LOG_WARNING, "Unable to dump call frame" - " errno: %d", errno); + " errno: %d", errno); return; } memcpy(&my_frame, call_frame, sizeof(my_frame)); UNLOCK(&call_frame->lock); - gf_proc_dump_build_key(key, prefix,"ref_count"); + gf_proc_dump_build_key(key, prefix,"ref_count"); gf_proc_dump_write(key, "%d", my_frame.ref_count); - gf_proc_dump_build_key(key, prefix,"translator"); + gf_proc_dump_build_key(key, prefix,"translator"); gf_proc_dump_write(key, "%s", my_frame.this->name); - gf_proc_dump_build_key(key, prefix,"complete"); + gf_proc_dump_build_key(key, prefix,"complete"); gf_proc_dump_write(key, "%d", my_frame.complete); if (my_frame.parent) { gf_proc_dump_build_key(key, prefix,"parent"); @@ -97,27 +97,27 @@ gf_proc_dump_call_stack (call_stack_t *call_stack, const char *key_buf,...) memset(prefix, 0, sizeof(prefix)); va_start(ap, key_buf); - vsnprintf(prefix, GF_DUMP_MAX_BUF_LEN, key_buf, ap); + vsnprintf(prefix, GF_DUMP_MAX_BUF_LEN, key_buf, ap); va_end(ap); - gf_proc_dump_build_key(key, prefix,"uid"); + gf_proc_dump_build_key(key, prefix,"uid"); gf_proc_dump_write(key, "%d", call_stack->uid); - gf_proc_dump_build_key(key, prefix,"gid"); + gf_proc_dump_build_key(key, prefix,"gid"); gf_proc_dump_write(key, "%d", call_stack->gid); - gf_proc_dump_build_key(key, prefix,"pid"); + gf_proc_dump_build_key(key, prefix,"pid"); gf_proc_dump_write(key, "%d", call_stack->pid); - gf_proc_dump_build_key(key, prefix,"unique"); + gf_proc_dump_build_key(key, prefix,"unique"); gf_proc_dump_write(key, "%Ld", call_stack->unique); - gf_proc_dump_build_key(key, prefix,"op"); + gf_proc_dump_build_key(key, prefix,"op"); if (call_stack->type == GF_OP_TYPE_FOP) gf_proc_dump_write(key, "%s", gf_fop_list[call_stack->op]); else if (call_stack->type == GF_OP_TYPE_MGMT) gf_proc_dump_write(key, "%s", gf_mgmt_list[call_stack->op]); - gf_proc_dump_build_key(key, prefix,"type"); + gf_proc_dump_build_key(key, prefix,"type"); gf_proc_dump_write(key, "%d", call_stack->type); - gf_proc_dump_build_key(key, prefix,"cnt"); + gf_proc_dump_build_key(key, prefix,"cnt"); gf_proc_dump_write(key, "%d", cnt); trav = &call_stack->frames; @@ -126,7 +126,7 @@ gf_proc_dump_call_stack (call_stack_t *call_stack, const char *key_buf,...) if (trav) { gf_proc_dump_add_section("%s.frame.%d", prefix, i); gf_proc_dump_call_frame(trav, "%s.frame.%d", prefix, i); - trav = trav->next; + trav = trav->next; } } } @@ -134,7 +134,7 @@ gf_proc_dump_call_stack (call_stack_t *call_stack, const char *key_buf,...) void gf_proc_dump_pending_frames (call_pool_t *call_pool) { - + call_stack_t *trav = NULL; int i = 1; int ret = -1; @@ -145,11 +145,11 @@ gf_proc_dump_pending_frames (call_pool_t *call_pool) ret = TRY_LOCK (&(call_pool->lock)); if (ret) { gf_log("", GF_LOG_WARNING, "Unable to dump call pool" - " errno: %d", errno); + " errno: %d", errno); return; } - + gf_proc_dump_add_section("global.callpool"); gf_proc_dump_write("global.callpool","%p", call_pool); gf_proc_dump_write("global.callpool.cnt","%d", call_pool->cnt); @@ -160,7 +160,7 @@ gf_proc_dump_pending_frames (call_pool_t *call_pool) gf_proc_dump_call_stack(trav, "global.callpool.stack.%d", i); i++; } - UNLOCK (&(call_pool->lock)); + UNLOCK (&(call_pool->lock)); } gf_boolean_t |