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-14 21:29:01 -0700
commit8720cef1ed642d7cb09e98c41458d19845f24711 (patch)
tree4a0e3feca5d48a32f147a6a2a604c96ca9530b93 /xlators/features/quota/src/quota.h
parenta367d4c6965e1f0da36f17ab6c5fdbd37925ebdd (diff)
features/quota: port QUOTA messages to new logging framework
Change-Id: I5e3df8860ea35bce14a802391be9b22ad64f1ad4 BUG: 1075611 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>
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 1d0db0d95da..0022089daa0 100644
--- a/xlators/features/quota/src/quota.h
+++ b/xlators/features/quota/src/quota.h
@@ -31,6 +31,7 @@
#include "compat-errno.h"
#include "protocol-common.h"
#include "quota-common-utils.h"
+#include "quota-messages.h"
#define DIRTY "dirty"
#define SIZE "size"
@@ -74,8 +75,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; \
} \