diff options
Diffstat (limited to 'xlators/features/quota/src/quota.h')
-rw-r--r-- | xlators/features/quota/src/quota.h | 6 |
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; \ } \ |