diff options
author | David Robillard <d@drobilla.net> | 2018-11-26 22:14:39 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:49 -0500 |
commit | 66412dc1084040263f8ec75fde51129176a053de (patch) | |
tree | 9e7b686844bd3bdde13f73a176b6a937118cbf96 /src/reader.c | |
parent | 086c16d97a70baa782aed938e16c500d1cda53be (diff) | |
download | serd-66412dc1084040263f8ec75fde51129176a053de.tar.gz serd-66412dc1084040263f8ec75fde51129176a053de.tar.bz2 serd-66412dc1084040263f8ec75fde51129176a053de.zip |
Rename SerdError to SerdMessage
Towards more general usage for all types of logging.
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c index dfa80f06..bc8edd52 100644 --- a/src/reader.c +++ b/src/reader.c @@ -40,8 +40,10 @@ r_err(SerdReader* reader, SerdStatus st, const char* fmt, ...) { va_list args; va_start(args, fmt); - const SerdError e = { st, &reader->source.cur, fmt, &args }; - serd_world_error(reader->world, &e); + const SerdMessage msg = { + st, SERD_LOG_LEVEL_ERROR, &reader->source.cur, fmt, &args + }; + serd_world_log(reader->world, &msg); va_end(args); return st; } |