diff options
author | David Robillard <d@drobilla.net> | 2009-06-03 21:47:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-06-03 21:47:19 +0000 |
commit | 3ee5e87fc15363c104f08e61ba8ed0da76f97152 (patch) | |
tree | 983ddefeeb5194e0a86887244c6b12ddba38ab1d /src/value.c | |
parent | c220a3ce918293855ed6b53b97dc604573fd031a (diff) | |
download | lilv-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/value.c')
-rw-r--r-- | src/value.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.c b/src/value.c index ed2f95a..3ef7542 100644 --- a/src/value.c +++ b/src/value.c @@ -96,14 +96,14 @@ slv2_value_new_librdf_node(SLV2World world, librdf_node* node) else if (librdf_uri_equals(datatype_uri, librdf_node_get_uri(world->xsd_decimal_node))) val->type = SLV2_VALUE_FLOAT; else - fprintf(stderr, "Unknown datatype %s\n", librdf_uri_as_string(datatype_uri)); + SLV2_ERRORF("Unknown datatype %s\n", librdf_uri_as_string(datatype_uri)); } val->str_val = strdup((char*)librdf_node_get_literal_value(node)); break; case LIBRDF_NODE_TYPE_BLANK: case LIBRDF_NODE_TYPE_UNKNOWN: default: - fprintf(stderr, "slv2_value_new_librdf_node error: Unknown node type."); + SLV2_ERROR("Unknown node type"); free(val); val = NULL; break; |