From c8100dfe65e04cf818b7535fbec658667b9d5dbb Mon Sep 17 00:00:00 2001 From: sanoj-unnikrishnan Date: Wed, 29 Aug 2018 14:45:50 +0530 Subject: Quota: Fix for clang issues Updates: bz#1193929 Change-Id: I549f741fbf97ee3fa2d63edacee5b705ef37c49a Signed-off-by: sanoj-unnikrishnan --- xlators/features/marker/src/marker-quota.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/features/marker/src/marker-quota.c') diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index 6d3c5eaec23..8c8bfe0255a 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -1446,7 +1446,7 @@ out: call_resume (stub); if (ret) - gf_log_callingfn (this->name, GF_LOG_ERROR, + gf_log_callingfn (this ? this->name : "Marker", GF_LOG_ERROR, "mq_reduce_parent_size_txn failed"); return ret; @@ -2183,8 +2183,8 @@ mq_req_xattr (xlator_t *this, loc_t *loc, dict_t *dict, out: if (ret < 0) - gf_log_callingfn (this->name, GF_LOG_ERROR, "dict set failed"); - + gf_log_callingfn (this ? this->name : "Marker", + GF_LOG_ERROR, "dict set failed"); return ret; } -- cgit