diff options
author | David Robillard <d@drobilla.net> | 2019-03-08 12:38:19 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-09 00:43:43 +0100 |
commit | 532af2452bac2cdd0e2732ad145fdc2b141a4afc (patch) | |
tree | 0b078c37a137ef0da3a1e76bc150e99f65f6d7dc /src/server/LV2Block.cpp | |
parent | 6bb3c48972d172fec244afae08a905e2246d9cda (diff) | |
download | ingen-532af2452bac2cdd0e2732ad145fdc2b141a4afc.tar.gz ingen-532af2452bac2cdd0e2732ad145fdc2b141a4afc.tar.bz2 ingen-532af2452bac2cdd0e2732ad145fdc2b141a4afc.zip |
Localise dependency on boost::format and improve logging API
Diffstat (limited to 'src/server/LV2Block.cpp')
-rw-r--r-- | src/server/LV2Block.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/server/LV2Block.cpp b/src/server/LV2Block.cpp index bf6cbd60..54280b5e 100644 --- a/src/server/LV2Block.cpp +++ b/src/server/LV2Block.cpp @@ -84,8 +84,8 @@ LV2Block::make_instance(URIs& uris, lplug, rate, _features->array()); if (!inst) { - engine.log().error(fmt("Failed to instantiate <%1%>\n") - % _lv2_plugin->uri().c_str()); + engine.log().error("Failed to instantiate <%1%>\n", + _lv2_plugin->uri().c_str()); return SPtr<Instance>(); } @@ -141,14 +141,15 @@ LV2Block::make_instance(URIs& uris, port->set_type(PortType::CV, 0); } else { parent_graph()->engine().log().error( - fmt("%1% auto-morphed to unknown type %2%\n") - % port->path().c_str() % type); + "%1% auto-morphed to unknown type %2%\n", + port->path().c_str(), + type); return SPtr<Instance>(); } } else { parent_graph()->engine().log().error( - fmt("Failed to get auto-morphed type of %1%\n") - % port->path().c_str()); + "Failed to get auto-morphed type of %1%\n", + port->path().c_str()); } } } @@ -304,8 +305,8 @@ LV2Block::instantiate(BufferFactory& bufs, const LilvState* state) uint32_t port_buffer_size = bufs.default_size(buffer_type); if (port_buffer_size == 0 && !optional) { parent_graph()->engine().log().error( - fmt("<%1%> port `%2%' has unknown buffer type\n") - % _lv2_plugin->uri().c_str() % port_sym.c_str()); + "<%1%> port `%2%' has unknown buffer type\n", + _lv2_plugin->uri().c_str(), port_sym.c_str()); ret = false; break; } @@ -355,8 +356,8 @@ LV2Block::instantiate(BufferFactory& bufs, const LilvState* state) if ((port_type == PortType::UNKNOWN && !optional) || direction == UNKNOWN) { parent_graph()->engine().log().error( - fmt("<%1%> port `%2%' has unknown type or direction\n") - % _lv2_plugin->uri().c_str() % port_sym.c_str()); + "<%1%> port `%2%' has unknown type or direction\n", + _lv2_plugin->uri().c_str(), port_sym.c_str()); ret = false; break; } @@ -563,7 +564,7 @@ LV2Block::work(uint32_t size, const void* data) LV2_Worker_Status st = _worker_iface->work(inst, work_respond, this, size, data); if (st) { parent_graph()->engine().log().error( - fmt("Error calling %1% work method\n") % _path); + "Error calling %1% work method\n", _path); } return st; } |