summaryrefslogtreecommitdiffstats
path: root/src/xml.c
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-03-15 14:39:59 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-03-15 14:39:59 (EDT)
commitb0d08c32e402b6b4cc710c70b828afbb254fd892 (patch)
tree3ccc328be12cd2f2ee1fd9f00ba94b2d6be3d902 /src/xml.c
parent074359b166c25db261d940445afb7211944e0c00 (diff)
downloaddodge-balls-b0d08c32e402b6b4cc710c70b828afbb254fd892.zip
dodge-balls-b0d08c32e402b6b4cc710c70b828afbb254fd892.tar.gz
dodge-balls-b0d08c32e402b6b4cc710c70b828afbb254fd892.tar.bz2
src/xml.c: Use renamed output functions
Diffstat (limited to 'src/xml.c')
-rw-r--r--src/xml.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xml.c b/src/xml.c
index c28fbc4..70ed752 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -22,8 +22,8 @@
#include <inttypes.h>
#include <expat.h>
#include <SDL_stdinc.h>
+#include "output.h"
#include "xml.h"
-#include "logging.h"
struct xml_node {
void *data;
@@ -42,7 +42,7 @@ xml_check_tag(const char *found, const char *expected)
void
xml_unexpected_start_tag(XML_Parser p, const char *found, const char *expected)
{
- warn("Found \"%s\" start tag where expected one of \"%s\" in map",
+ db_warn("Found \"%s\" start tag where expected one of \"%s\" in map",
found, expected);
XML_StopParser(p, XML_FALSE);
}
@@ -50,7 +50,7 @@ xml_unexpected_start_tag(XML_Parser p, const char *found, const char *expected)
void
xml_unexpected_end_tag(XML_Parser p, const char *found, const char *expected)
{
- warn("Found \"%s\" end tag where expected one of \"%s\" in map",
+ db_warn("Found \"%s\" end tag where expected one of \"%s\" in map",
found, expected);
XML_StopParser(p, XML_FALSE);
}
@@ -64,13 +64,13 @@ xml_get_uint32_attr(XML_Parser p, const char **attr, const char *name,
if (sscanf(attr[1], "%" PRIu32, dest) == 1) {
return;
} else if (req) {
- warn("Invalid \"%s\" attribute value", name);
+ db_warn("Invalid \"%s\" attribute value", name);
XML_StopParser(p, XML_FALSE);
}
}
}
if (req) {
- warn("Required attribute \"%s\" not found", name);
+ db_warn("Required attribute \"%s\" not found", name);
XML_StopParser(p, XML_FALSE);
}
}
@@ -84,13 +84,13 @@ xml_get_int_attr(XML_Parser p, const char **attr, const char *name,
if (sscanf(attr[1], "%d", dest) == 1) {
return;
} else if (req) {
- warn("Invalid \"%s\" attribute value", name);
+ db_warn("Invalid \"%s\" attribute value", name);
XML_StopParser(p, XML_FALSE);
}
}
}
if (req) {
- warn("Required attribute \"%s\" not found", name);
+ db_warn("Required attribute \"%s\" not found", name);
XML_StopParser(p, XML_FALSE);
}
}
@@ -106,7 +106,7 @@ xml_get_string_attr(XML_Parser p, const char **attr, const char *name,
}
}
if (req) {
- warn("Required attribute \"%s\" not found", name);
+ db_warn("Required attribute \"%s\" not found", name);
XML_StopParser(p, XML_FALSE);
}
}