diff options
author | David Robillard <d@drobilla.net> | 2019-03-31 22:47:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:48:23 +0200 |
commit | f19b3c02a317cb74f9410e026b7ec145c8be0bcb (patch) | |
tree | 58c5dcbe69cbdd1c87278401353f24d9a3967a7d /src/world.c | |
parent | e75d53733b9e016f1fe92d961daa40f74de933e9 (diff) | |
download | serd-f19b3c02a317cb74f9410e026b7ec145c8be0bcb.tar.gz serd-f19b3c02a317cb74f9410e026b7ec145c8be0bcb.tar.bz2 serd-f19b3c02a317cb74f9410e026b7ec145c8be0bcb.zip |
WIP: log
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/world.c b/src/world.c index 2437d83d..f16b0f95 100644 --- a/src/world.c +++ b/src/world.c @@ -39,9 +39,9 @@ serd_world_fopen(SerdWorld* world, const char* path, const char* mode) { FILE* fd = fopen(path, mode); if (!fd) { - serd_world_errorf(world, SERD_ERR_INTERNAL, - "failed to open file %s (%s)\n", - path, strerror(errno)); + SERD_LOG_ERRORF(world, SERD_ERR_INTERNAL, + "failed to open file %s (%s)\n", + path, strerror(errno)); return NULL; } #if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FILENO) @@ -87,17 +87,6 @@ serd_world_logf(const SerdWorld* world, return st; } -SerdStatus -serd_world_errorf(const SerdWorld* world, SerdStatus st, const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - const SerdMessage msg = { st, SERD_LOG_LEVEL_ERROR, NULL, fmt, &args }; - serd_world_log(world, &msg); - va_end(args); - return st; -} - SerdWorld* serd_world_new(void) { |