summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-03 21:47:19 +0000
committerDavid Robillard <d@drobilla.net>2009-06-03 21:47:19 +0000
commit3ee5e87fc15363c104f08e61ba8ed0da76f97152 (patch)
tree983ddefeeb5194e0a86887244c6b12ddba38ab1d /src/world.c
parentc220a3ce918293855ed6b53b97dc604573fd031a (diff)
downloadlilv-3ee5e87fc15363c104f08e61ba8ed0da76f97152.tar.gz
lilv-3ee5e87fc15363c104f08e61ba8ed0da76f97152.tar.bz2
lilv-3ee5e87fc15363c104f08e61ba8ed0da76f97152.zip
Consistent error/warning message output.
Fix crash on invalid plugin files. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2086 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/world.c b/src/world.c
index 5b0d25a..bd38fd2 100644
--- a/src/world.c
+++ b/src/world.c
@@ -44,8 +44,8 @@ slv2_world_new_internal(SLV2World world)
world->storage = librdf_new_storage(world->world, "trees", NULL, NULL);
if (!world->storage) {
- fprintf(stderr, "Warning: Unable to create \"trees\" RDF storage.\n"
- "Performance can be improved by upgrading librdf.\n");
+ SLV2_WARN("Warning: Unable to create \"trees\" RDF storage.\n"
+ "Performance can be improved by upgrading librdf.\n");
world->storage = librdf_new_storage(world->world, "hashes", NULL,
"hash-type='memory'");
}
@@ -177,7 +177,7 @@ void
slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri)
{
if (!slv2_value_is_uri(bundle_uri)) {
- fprintf(stderr, "ERROR: slv2_world_load_bundle called with non-URI argument\n");
+ SLV2_ERROR("Bundle 'URI' is not a URI\n");
return;
}