diff options
author | David Robillard <d@drobilla.net> | 2023-12-02 11:19:56 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 1d8cc6eebcb61f261f6d92318ffda32d8a4de080 (patch) | |
tree | 78b07be5de29d2d36f64d3cc28e0b01f39d7f30c /src/reader.h | |
parent | aa6b5ec5b9344bce0ea38d294aef0782c3745548 (diff) | |
download | serd-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.h | 2 |
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); |