summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-07-19 06:15:34 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-19 05:11:20 -0700
commita81a794c9311f90551277670c0f9d201bd96abfc (patch)
treeed409d5f731aef754a65fd860445a75913d93269
parent0985f3995e446e23ca6edc380b998581889ae5d0 (diff)
debug/* Change STACK_UNWIND TO STACK_UNWIND_STRICT
Also fixed log msg typo found in bug 1031 Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 269 (Add a specialized STACK_UNWIND macro for each FOP) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=269
-rw-r--r--libglusterfs/src/dict.c10
-rw-r--r--xlators/debug/error-gen/src/error-gen.c8
-rw-r--r--xlators/debug/io-stats/src/io-stats.c2
3 files changed, 10 insertions, 10 deletions
diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c
index ca6275f26b8..1f60116238f 100644
--- a/libglusterfs/src/dict.c
+++ b/libglusterfs/src/dict.c
@@ -2409,7 +2409,7 @@ dict_unserialize (char *orig_buf, int32_t size, dict_t **fill)
if ((buf + DICT_HDR_LEN) > (orig_buf + size)) {
gf_log ("dict", GF_LOG_ERROR,
- "undersized buffer passsed");
+ "undersized buffer passed");
goto out;
}
@@ -2432,7 +2432,7 @@ dict_unserialize (char *orig_buf, int32_t size, dict_t **fill)
"No room for keylen (size %d).",
DICT_DATA_HDR_KEY_LEN);
gf_log ("dict", GF_LOG_ERROR,
- "undersized buffer passsed");
+ "undersized buffer passed");
goto out;
}
memcpy (&hostord, buf, sizeof(hostord));
@@ -2444,7 +2444,7 @@ dict_unserialize (char *orig_buf, int32_t size, dict_t **fill)
"No room for vallen (size %d).",
DICT_DATA_HDR_VAL_LEN);
gf_log ("dict", GF_LOG_ERROR,
- "undersized buffer passsed");
+ "undersized buffer passed");
goto out;
}
memcpy (&hostord, buf, sizeof(hostord));
@@ -2455,7 +2455,7 @@ dict_unserialize (char *orig_buf, int32_t size, dict_t **fill)
gf_log ("dict", GF_LOG_DEBUG,
"No room for key (size %d).", keylen);
gf_log ("dict", GF_LOG_ERROR,
- "undersized buffer passsed");
+ "undersized buffer passed");
goto out;
}
key = buf;
@@ -2465,7 +2465,7 @@ dict_unserialize (char *orig_buf, int32_t size, dict_t **fill)
gf_log ("dict", GF_LOG_DEBUG,
"No room for value (size %d).", vallen);
gf_log ("dict", GF_LOG_ERROR,
- "undersized buffer passsed");
+ "undersized buffer passed");
goto out;
}
value = get_new_data ();
diff --git a/xlators/debug/error-gen/src/error-gen.c b/xlators/debug/error-gen/src/error-gen.c
index bfd5797b554..8e37d7a1c6e 100644
--- a/xlators/debug/error-gen/src/error-gen.c
+++ b/xlators/debug/error-gen/src/error-gen.c
@@ -395,7 +395,7 @@ error_gen_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc,
if (op_errno) {
GF_ERROR(this, "unwind(-1, %s)", strerror (op_errno));
- STACK_UNWIND (frame, -1, op_errno, NULL, NULL, NULL,
+ STACK_UNWIND_STRICT (lookup, frame, -1, op_errno, NULL, NULL, NULL,
NULL);
return 0;
}
@@ -439,7 +439,7 @@ error_gen_stat (call_frame_t *frame, xlator_t *this, loc_t *loc)
if (op_errno) {
GF_ERROR(this, "unwind(-1, %s)", strerror (op_errno));
- STACK_UNWIND (frame, -1, op_errno, NULL);
+ STACK_UNWIND_STRICT (stat, frame, -1, op_errno, NULL);
return 0;
}
@@ -1724,7 +1724,7 @@ int
error_gen_getspec_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int32_t op_ret, int32_t op_errno, char *spec_data)
{
- STACK_UNWIND (frame, op_ret, op_errno, spec_data);
+ STACK_UNWIND_STRICT (getspec, frame, op_ret, op_errno, spec_data);
return 0;
}
@@ -1746,7 +1746,7 @@ error_gen_getspec (call_frame_t *frame, xlator_t *this, const char *key,
if (op_errno) {
GF_ERROR(this, "unwind(-1, %s)", strerror (op_errno));
- STACK_UNWIND (frame, -1, op_errno, NULL);
+ STACK_UNWIND_STRICT (getspec, frame, -1, op_errno, NULL);
return 0;
}
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c
index 3866ff4604e..97a14ce4592 100644
--- a/xlators/debug/io-stats/src/io-stats.c
+++ b/xlators/debug/io-stats/src/io-stats.c
@@ -642,7 +642,7 @@ int
io_stats_getxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int32_t op_ret, int32_t op_errno, dict_t *dict)
{
- STACK_UNWIND (frame, op_ret, op_errno, dict);
+ STACK_UNWIND_STRICT (getxattr, frame, op_ret, op_errno, dict);
return 0;
}