aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-06 10:34:54 +0200
committerDavid Robillard <d@drobilla.net>2020-07-06 10:34:54 +0200
commited4c28d84c9411e46a0a53efc97c4966ef7ad3d7 (patch)
treed98ea38fd6f2f2f90341043adc68a3aa3de481eb /src/n3.c
parentdeb20148f2f92ec6b4b0c1f2210fef0040f749f2 (diff)
downloadserd-ed4c28d84c9411e46a0a53efc97c4966ef7ad3d7.tar.gz
serd-ed4c28d84c9411e46a0a53efc97c4966ef7ad3d7.tar.bz2
serd-ed4c28d84c9411e46a0a53efc97c4966ef7ad3d7.zip
Fix format conversion warnings
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/n3.c b/src/n3.c
index a6250401..0098e5a1 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -623,8 +623,11 @@ read_IRIREF_scheme(SerdReader* reader, Ref dest)
if (c == '>') {
return r_err(reader, SERD_ERR_BAD_SYNTAX, "missing IRI scheme\n");
} else if (!is_uri_scheme_char(c)) {
- return r_err(reader, SERD_ERR_BAD_SYNTAX,
- "bad IRI scheme char `%X'\n", c);
+ return r_err(reader,
+ SERD_ERR_BAD_SYNTAX,
+ "bad IRI scheme char U+%04X (%c)\n",
+ (unsigned)c,
+ (char)c);
}
push_byte(reader, dest, eat_byte_safe(reader, c));
@@ -664,7 +667,7 @@ read_IRIREF(SerdReader* reader)
switch (code) {
case 0: case ' ': case '<': case '>':
r_err(reader, SERD_ERR_BAD_SYNTAX,
- "invalid escaped IRI character %X %c\n", code, code);
+ "invalid escaped IRI character U+%04X\n", code);
return pop_node(reader, ref);
default:
break;