cb8e9e
From 7043d7f0bcd419d5e6e960b8f79ba154c40d95ef Mon Sep 17 00:00:00 2001
cb8e9e
From: Nithya Balachandran <nbalacha@redhat.com>
cb8e9e
Date: Fri, 10 Jul 2015 13:41:29 +0530
cb8e9e
Subject: [PATCH 230/234] logging: Fixed incorrect buffer size
cb8e9e
cb8e9e
            Backport of http://review.gluster.org/11521
cb8e9e
cb8e9e
An incorrect buffer size passed in to_gf_msg_backtrace
cb8e9e
prevented the callers from being logged.
cb8e9e
cb8e9e
Change-Id: I90550c46ee87c7c078f7ba3fb2bd7fa12f5a70af
cb8e9e
BUG: 1241830
cb8e9e
Signed-off-by: Nithya Balachandran <nbalacha@redhat.com>
cb8e9e
Reviewed-on: https://code.engineering.redhat.com/gerrit/52760
cb8e9e
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
cb8e9e
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
cb8e9e
---
cb8e9e
 libglusterfs/src/logging.c |    2 +-
cb8e9e
 1 files changed, 1 insertions(+), 1 deletions(-)
cb8e9e
cb8e9e
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
cb8e9e
index 61b986c..c81c5b1 100644
cb8e9e
--- a/libglusterfs/src/logging.c
cb8e9e
+++ b/libglusterfs/src/logging.c
cb8e9e
@@ -2045,7 +2045,7 @@ _gf_msg (const char *domain, const char *file, const char *function,
cb8e9e
 
cb8e9e
         if (trace) {
cb8e9e
                 ret = _gf_msg_backtrace (GF_LOG_BACKTRACE_DEPTH, callstr,
cb8e9e
-                                         GF_LOG_BACKTRACE_DEPTH);
cb8e9e
+                                         GF_LOG_BACKTRACE_SIZE);
cb8e9e
                 if (ret >= 0)
cb8e9e
                         passcallstr = 1;
cb8e9e
                 else
cb8e9e
-- 
cb8e9e
1.7.1
cb8e9e