summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/parse-utils.c
diff options
context:
space:
mode:
authorMohamed Ashiq <ashiq333@gmail.com>2015-05-19 15:21:46 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-06-24 23:29:28 -0700
commita9b6933ef097d2a81ce21a8aeda2acc569cd1509 (patch)
treeca91427bc1ddeb0b37590c9a999a0048900e1579 /libglusterfs/src/parse-utils.c
parent6853d5091dd52059490e5e548c06faf1306079df (diff)
event,parse-utils,quota-common-utils,rbthash/libglusterfs : Porting to new logging framework
Change-Id: I13ae9a97fe442c06cf50fe77c63718ea0858dc4d BUG: 1194640 Signed-off-by: Mohamed Ashiq <ashiq333@gmail.com> Reviewed-on: http://review.gluster.org/10823 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src/parse-utils.c')
-rw-r--r--libglusterfs/src/parse-utils.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libglusterfs/src/parse-utils.c b/libglusterfs/src/parse-utils.c
index f7e9988ab64..304232f6b56 100644
--- a/libglusterfs/src/parse-utils.c
+++ b/libglusterfs/src/parse-utils.c
@@ -20,6 +20,7 @@
#include "parse-utils.h"
#include "mem-pool.h"
#include "common-utils.h"
+#include "libglusterfs-messages.h"
/**
* parser_init: Initialize a parser with the a string to parse and
@@ -46,8 +47,6 @@ parser_init (const char *regex)
parser->regex = gf_strdup (regex);
if (!parser->regex) {
- gf_log (GF_PARSE, GF_LOG_INFO,
- "Failed to duplicate regex string!");
GF_FREE (parser);
parser = NULL;
goto out;
@@ -55,7 +54,7 @@ parser_init (const char *regex)
rc = regcomp (&parser->preg, parser->regex, REG_EXTENDED);
if (rc != 0) {
- gf_log (GF_PARSE, GF_LOG_INFO,
+ gf_msg (GF_PARSE, GF_LOG_INFO, 0, LG_MSG_REGEX_OP_FAILED,
"Failed to compile regex pattern.");
parser_deinit (parser);
parser = NULL;
@@ -160,7 +159,7 @@ parser_get_next_match (struct parser *parser)
rc = regexec (&parser->preg, parser->_rstr, 1, parser->pmatch, 0);
if (rc != 0) {
- gf_log (GF_PARSE, GF_LOG_DEBUG,
+ gf_msg_debug (GF_PARSE, 0,
"Could not match %s with regex %s",
parser->_rstr, parser->regex);
goto out;