diff options
author | David Robillard <d@drobilla.net> | 2022-05-30 21:38:12 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:50:33 -0400 |
commit | ee969b8c279200ead703448ff063fd6941e362ae (patch) | |
tree | b0c2677302da20804b3d34d0b29a3646de6b9472 /src | |
parent | 8072eddfa190b2cd7678f334707052b98a9b705b (diff) | |
download | jalv-ee969b8c279200ead703448ff063fd6941e362ae.tar.gz jalv-ee969b8c279200ead703448ff063fd6941e362ae.tar.bz2 jalv-ee969b8c279200ead703448ff063fd6941e362ae.zip |
Print status information consistently to stdout
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv.c | 16 | ||||
-rw-r--r-- | src/jalv_gtk.c | 2 |
2 files changed, 7 insertions, 11 deletions
@@ -1096,11 +1096,9 @@ jalv_open(Jalv* const jalv, int* argc, char*** argv) // Create ringbuffers for UI if necessary if (jalv->ui) { - fprintf(stderr, - "UI: %s\n", - lilv_node_as_uri(lilv_ui_get_uri(jalv->ui))); + printf("UI: %s\n", lilv_node_as_uri(lilv_ui_get_uri(jalv->ui))); } else { - fprintf(stderr, "UI: None\n"); + printf("UI: None\n"); } // Create port and control structures @@ -1147,9 +1145,9 @@ jalv_open(Jalv* const jalv, int* argc, char*** argv) // The UI can only go so fast, clamp to reasonable limits jalv->ui_update_hz = MIN(60, jalv->ui_update_hz); jalv->opts.buffer_size = MAX(4096, jalv->opts.buffer_size); - fprintf(stderr, "Comm buffers: %u bytes\n", jalv->opts.buffer_size); - fprintf(stderr, "Update rate: %.01f Hz\n", jalv->ui_update_hz); - fprintf(stderr, "Scale factor: %.01f\n", jalv->ui_scale_factor); + printf("Comm buffers: %u bytes\n", jalv->opts.buffer_size); + printf("Update rate: %.01f Hz\n", jalv->ui_update_hz); + printf("Scale factor: %.01f\n", jalv->ui_scale_factor); // Build options array to pass to plugin const LV2_Options_Option options[ARRAY_SIZE(jalv->features.options)] = { @@ -1254,7 +1252,7 @@ jalv_open(Jalv* const jalv, int* argc, char*** argv) jalv->worker.handle = jalv->instance->lv2_handle; jalv->state_worker.handle = jalv->instance->lv2_handle; - fprintf(stderr, "\n"); + printf("\n"); if (!jalv->buf_size_set) { jalv_allocate_port_buffers(jalv); } @@ -1315,8 +1313,6 @@ jalv_close(Jalv* const jalv) { jalv->exit = true; - fprintf(stderr, "Exiting...\n"); - // Terminate the worker jalv_worker_finish(&jalv->worker); diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c index 998d789..98c9711 100644 --- a/src/jalv_gtk.c +++ b/src/jalv_gtk.c @@ -847,7 +847,7 @@ jalv_ui_port_event(Jalv* jalv, } } } else { - printf("Unknown object type?\n"); + fprintf(stderr, "Unknown object type\n"); } updating = false; } |