Blob Blame History Raw
From 7043d7f0bcd419d5e6e960b8f79ba154c40d95ef Mon Sep 17 00:00:00 2001
From: Nithya Balachandran <nbalacha@redhat.com>
Date: Fri, 10 Jul 2015 13:41:29 +0530
Subject: [PATCH 230/234] logging: Fixed incorrect buffer size

            Backport of http://review.gluster.org/11521

An incorrect buffer size passed in to_gf_msg_backtrace
prevented the callers from being logged.

Change-Id: I90550c46ee87c7c078f7ba3fb2bd7fa12f5a70af
BUG: 1241830
Signed-off-by: Nithya Balachandran <nbalacha@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/52760
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
---
 libglusterfs/src/logging.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
index 61b986c..c81c5b1 100644
--- a/libglusterfs/src/logging.c
+++ b/libglusterfs/src/logging.c
@@ -2045,7 +2045,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
-- 
1.7.1