aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-21 20:19:43 +0200
committerDavid Robillard <d@drobilla.net>2020-07-21 20:19:43 +0200
commit8afee591f5a88888d896380e572182033901a7c4 (patch)
tree0d263ee8d7bbde3277ea17f3a321ee5b8404be3e /src
parent772a5cd542b80deac33b92b34dd6464509bd0b86 (diff)
downloadjalv-8afee591f5a88888d896380e572182033901a7c4.tar.gz
jalv-8afee591f5a88888d896380e572182033901a7c4.tar.bz2
jalv-8afee591f5a88888d896380e572182033901a7c4.zip
Fix incorrect printf format specifiers
Diffstat (limited to 'src')
-rw-r--r--src/jack.c2
-rw-r--r--src/jalv.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/jack.c b/src/jack.c
index 7a3d6dc..e509127 100644
--- a/src/jack.c
+++ b/src/jack.c
@@ -496,7 +496,7 @@ jalv_backend_activate_port(Jalv* jalv, uint32_t port_index)
if (port->sys_port) {
// Set port order to index
char index_str[16];
- snprintf(index_str, sizeof(index_str), "%d", port_index);
+ snprintf(index_str, sizeof(index_str), "%u", port_index);
jack_set_property(client, jack_port_uuid(port->sys_port),
"http://jackaudio.org/metadata/order", index_str,
"http://www.w3.org/2001/XMLSchema#integer");
diff --git a/src/jalv.c b/src/jalv.c
index 09b15e3..e3f4069 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -470,13 +470,13 @@ jalv_ui_write(void* const jalv_handle,
Jalv* const jalv = (Jalv*)jalv_handle;
if (protocol != 0 && protocol != jalv->urids.atom_eventTransfer) {
- fprintf(stderr, "UI write with unsupported protocol %d (%s)\n",
+ fprintf(stderr, "UI write with unsupported protocol %u (%s)\n",
protocol, unmap_uri(jalv, protocol));
return;
}
if (port_index >= jalv->num_ports) {
- fprintf(stderr, "UI write to out of range port index %d\n",
+ fprintf(stderr, "UI write to out of range port index %u\n",
port_index);
return;
}
@@ -528,7 +528,7 @@ jalv_apply_ui_events(Jalv* jalv, uint32_t nframes)
lv2_evbuf_write(&e, nframes, 0, atom->type, atom->size,
(const uint8_t*)LV2_ATOM_BODY_CONST(atom));
} else {
- fprintf(stderr, "error: Unknown control change protocol %d\n",
+ fprintf(stderr, "error: Unknown control change protocol %u\n",
ev.protocol);
}
}
@@ -1093,7 +1093,7 @@ 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: %d bytes\n", 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);
/* Build options array to pass to plugin */