summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/logging.c
diff options
context:
space:
mode:
authorNithya Balachandran <nbalacha@redhat.com>2015-07-03 15:12:23 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-07-11 23:08:54 -0700
commit160e539e26ed1e17a0c2cad97dd28cc8cbce9d6d (patch)
tree9100056ec8bd45a0ed81946c3ea701b90e25ddaa /libglusterfs/src/logging.c
parent35b2cdcb7ac0a623274b6cceac33c0f7fb16873b (diff)
logging: Fixed incorrect buffer size
An incorrect buffer size passed in to_gf_msg_backtrace prevented the callers from being logged. Change-Id: I86104d6b3f611455308d5b3420dfb6d456070a23 BUG: 1238952 Signed-off-by: Nithya Balachandran <nbalacha@redhat.com> Reviewed-on: http://review.gluster.org/11521 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src/logging.c')
-rw-r--r--libglusterfs/src/logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
index 9a4e7b65fe8..70149a2fd3c 100644
--- a/libglusterfs/src/logging.c
+++ b/libglusterfs/src/logging.c
@@ -2056,7 +2056,7 @@ _gf_msg (const char *domain, const char *file, const char *function,
if (trace) {
ret = _gf_msg_backtrace (GF_LOG_BACKTRACE_DEPTH, callstr,
- GF_LOG_BACKTRACE_DEPTH);
+ GF_LOG_BACKTRACE_SIZE);
if (ret >= 0)
passcallstr = 1;
else