aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_console.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-10 17:48:21 -0400
committerDavid Robillard <d@drobilla.net>2022-08-17 13:51:15 -0400
commit5f579de5d335681a97b3727c503e33b34d3c5ee7 (patch)
tree37a2007d980d794028f6cf37934dffcf1d1606ea /src/jalv_console.c
parentdd0b73bf4e03359728b671d6a5725be30e05a9e9 (diff)
downloadjalv-5f579de5d335681a97b3727c503e33b34d3c5ee7.tar.gz
jalv-5f579de5d335681a97b3727c503e33b34d3c5ee7.tar.bz2
jalv-5f579de5d335681a97b3727c503e33b34d3c5ee7.zip
Use logging API for almost all console output
Towards being smarter about this and maintaining distinction between kinds of output, so the console interface can grow into a more solid language/protocol.
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r--src/jalv_console.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c
index 9ce009b..4d5f528 100644
--- a/src/jalv_console.c
+++ b/src/jalv_console.c
@@ -170,7 +170,10 @@ jalv_print_controls(Jalv* jalv, bool writable, bool readable)
if ((control->is_writable && writable) ||
(control->is_readable && readable)) {
struct Port* const port = &jalv->ports[control->index];
- printf("%s = %f\n", lilv_node_as_string(control->symbol), port->control);
+ jalv_log(JALV_LOG_INFO,
+ "%s = %f\n",
+ lilv_node_as_string(control->symbol),
+ port->control);
}
}