aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-12-02 11:19:56 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit1d8cc6eebcb61f261f6d92318ffda32d8a4de080 (patch)
tree78b07be5de29d2d36f64d3cc28e0b01f39d7f30c /src/reader.h
parentaa6b5ec5b9344bce0ea38d294aef0782c3745548 (diff)
downloadserd-1d8cc6eebcb61f261f6d92318ffda32d8a4de080.tar.gz
serd-1d8cc6eebcb61f261f6d92318ffda32d8a4de080.tar.bz2
serd-1d8cc6eebcb61f261f6d92318ffda32d8a4de080.zip
Make r_err take a single line without trailing newline
Towards having an actual logging (rather than printing) mechanism.
Diffstat (limited to 'src/reader.h')
-rw-r--r--src/reader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.h b/src/reader.h
index 5441d8b6..1c308824 100644
--- a/src/reader.h
+++ b/src/reader.h
@@ -129,7 +129,7 @@ eat_byte_check(SerdReader* reader, const int byte)
{
const int c = peek_byte(reader);
if (c != byte) {
- return r_err(reader, SERD_BAD_SYNTAX, "expected '%c', not '%c'\n", byte, c);
+ return r_err(reader, SERD_BAD_SYNTAX, "expected '%c', not '%c'", byte, c);
}
skip_byte(reader, c);