[lasem] dom_parser: convert debug messages to lsm_debug API.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] dom_parser: convert debug messages to lsm_debug API.
- Date: Tue, 12 Jun 2012 14:02:22 +0000 (UTC)
commit 416704fc07197528a7b6bbabb402d20e6eae801a
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue Jun 12 16:01:08 2012 +0200
dom_parser: convert debug messages to lsm_debug API.
src/lsmdomparser.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/lsmdomparser.c b/src/lsmdomparser.c
index d8a8f35..08e577b 100644
--- a/src/lsmdomparser.c
+++ b/src/lsmdomparser.c
@@ -196,14 +196,13 @@ lsm_dom_parser_declare_entity (void * user_data, const xmlChar * name, int type,
}
}
-#if 1
static void
lsm_dom_parser_warning (void *user_data, const char *msg, ...)
{
va_list args;
va_start(args, msg);
- g_logv("XML", G_LOG_LEVEL_WARNING, msg, args);
+ lsm_warning_dom (msg);
va_end(args);
}
@@ -213,7 +212,7 @@ lsm_dom_parser_error (void *user_data, const char *msg, ...)
va_list args;
va_start(args, msg);
- g_logv("XML", G_LOG_LEVEL_CRITICAL, msg, args);
+ lsm_warning_dom (msg);
va_end(args);
}
@@ -223,17 +222,14 @@ lsm_dom_parser_fatal_error (void *user_data, const char *msg, ...)
va_list args;
va_start(args, msg);
- g_logv("XML", G_LOG_LEVEL_ERROR, msg, args);
+ lsm_warning_dom (msg);
va_end(args);
}
-#endif
static xmlSAXHandler sax_handler = {
-#if 1
.warning = lsm_dom_parser_warning,
.error = lsm_dom_parser_error,
.fatalError = lsm_dom_parser_fatal_error,
-#endif
.startDocument = lsm_dom_parser_start_document,
.endDocument = lsm_dom_parser_end_document,
.startElement = lsm_dom_parser_start_element,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]