summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src/quota.h
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2015-05-25 16:52:10 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-06-23 21:07:25 -0700
commit386f8ff50c85807f19db8c1a29c67ce2d2cf4474 (patch)
tree4281151be7d25a468d25ac821ede67e967ad49a7 /xlators/features/quota/src/quota.h
parentd88c3b6ee390b1780bda30b1aff6e02d558fd6c7 (diff)
features/quota: port QUOTA messages to new logging framework
Change-Id: I2fa725323ee9a9959fd105ea014c90e2fad11c14 BUG: 1234297 Signed-off-by: Susant Palai <spalai@redhat.com> Reviewed-on: http://review.gluster.org/7574 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Raghavendra G <rgowdapp@redhat.com> Signed-off-by: Susant Palai <spalai@redhat.com> Reviewed-on: http://review.gluster.org/11341
Diffstat (limited to 'xlators/features/quota/src/quota.h')
-rw-r--r--xlators/features/quota/src/quota.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h
index 566302ca0c4..56876f05c8f 100644
--- a/xlators/features/quota/src/quota.h
+++ b/xlators/features/quota/src/quota.h
@@ -36,6 +36,7 @@
#include "compat-errno.h"
#include "protocol-common.h"
#include "quota-common-utils.h"
+#include "quota-messages.h"
#define DIRTY "dirty"
#define SIZE "size"
@@ -79,8 +80,9 @@
var = GF_CALLOC (sizeof (type), 1, \
gf_quota_mt_##type); \
if (!var) { \
- gf_log ("", GF_LOG_ERROR, \
- "out of memory"); \
+ gf_msg ("", GF_LOG_ERROR, \
+ ENOMEM, Q_MSG_ENOMEM, \
+ "out of memory"); \
ret = -1; \
goto label; \
} \