diff options
author | David Robillard <d@drobilla.net> | 2017-03-26 20:04:59 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-03-26 20:04:59 +0200 |
commit | 5df29e8cc91115098dcb09978722c76b71689fa3 (patch) | |
tree | 12d807052d9ab41fe6ebc547c5556b492f0c8e97 /src/Log.cpp | |
parent | ff5fb176daad42b2727b02885f9a4407b694ba52 (diff) | |
download | ingen-5df29e8cc91115098dcb09978722c76b71689fa3.tar.gz ingen-5df29e8cc91115098dcb09978722c76b71689fa3.tar.bz2 ingen-5df29e8cc91115098dcb09978722c76b71689fa3.zip |
Remove Node::path() and Node::symbol()
Diffstat (limited to 'src/Log.cpp')
-rw-r--r-- | src/Log.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Log.cpp b/src/Log.cpp index 259d9a3e..e5f4abc3 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -117,7 +117,11 @@ log_vprintf(LV2_Log_Handle handle, LV2_URID type, const char* fmt, va_list args) Log::Feature::Handle* f = (Log::Feature::Handle*)handle; va_list noargs; - int ret = f->log->vtprintf(type, f->node->path().c_str(), noargs); + const std::string tag = (uri_is_path(f->node->uri()) + ? std::string(uri_to_path(f->node->uri())) + : std::string(f->node->uri())); + + int ret = f->log->vtprintf(type, tag.c_str(), noargs); ret += f->log->vtprintf(type, ": ", noargs); ret += f->log->vtprintf(type, fmt, args); |