diff options
author | David Robillard <d@drobilla.net> | 2020-07-15 17:22:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-16 23:37:49 +0200 |
commit | cec00731f59893ba0851bc5eb2187037c7b21dbf (patch) | |
tree | 3443d64207534b48533aa5a6a67aa2a750525c8a /utils | |
parent | 3138cadd2e60eabb16822994c281ef4b73832d91 (diff) | |
download | lilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.tar.gz lilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.tar.bz2 lilv-cec00731f59893ba0851bc5eb2187037c7b21dbf.zip |
Fix conversion warnings
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lv2apply.c | 6 | ||||
-rw-r--r-- | utils/lv2bench.c | 6 | ||||
-rw-r--r-- | utils/lv2info.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/utils/lv2apply.c b/utils/lv2apply.c index 14a5ff0..b130c9f 100644 --- a/utils/lv2apply.c +++ b/utils/lv2apply.c @@ -169,7 +169,7 @@ create_ports(LV2Apply* self) port->is_input = true; } else if (!lilv_port_is_a(self->plugin, lport, lv2_OutputPort) && !port->optional) { - return fatal(self, 1, "Port %d is neither input nor output\n", i); + return fatal(self, 1, "Port %u is neither input nor output\n", i); } /* Check if port is an audio or control port */ @@ -183,7 +183,7 @@ create_ports(LV2Apply* self) ++self->n_audio_out; } } else if (!port->optional) { - return fatal(self, 1, "Port %d has unsupported type\n", i); + return fatal(self, 1, "Port %u has unsupported type\n", i); } } @@ -296,7 +296,7 @@ main(int argc, char** argv) if (self.n_audio_in == 0 || (in_fmt.channels != (int)self.n_audio_in && in_fmt.channels != 1)) { - return fatal(&self, 6, "Unable to map %d inputs to %d ports\n", + return fatal(&self, 6, "Unable to map %d inputs to %u ports\n", in_fmt.channels, self.n_audio_in); } diff --git a/utils/lv2bench.c b/utils/lv2bench.c index 698bf71..2c22a3b 100644 --- a/utils/lv2bench.c +++ b/utils/lv2bench.c @@ -146,7 +146,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) } else if (lilv_port_is_a(p, port, lv2_OutputPort)) { lilv_instance_connect_port(instance, index, out); } else { - fprintf(stderr, "<%s> port %d neither input nor output, skipping\n", + fprintf(stderr, "<%s> port %u neither input nor output, skipping\n", uri, index); lilv_instance_free(instance); free(seq_out); @@ -162,7 +162,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) lilv_instance_connect_port(instance, index, seq_out); } } else { - fprintf(stderr, "<%s> port %d has unknown type, skipping\n", + fprintf(stderr, "<%s> port %u has unknown type, skipping\n", uri, index); lilv_instance_free(instance); free(seq_out); @@ -193,7 +193,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) uri_table_destroy(&uri_table); if (full_output) { - printf("%d %d ", block_size, sample_count); + printf("%u %u ", block_size, sample_count); } printf("%lf %s\n", elapsed, uri); diff --git a/utils/lv2info.c b/utils/lv2info.c index 7fed585..f4c5c3f 100644 --- a/utils/lv2info.c +++ b/utils/lv2info.c @@ -47,7 +47,7 @@ print_port(const LilvPlugin* p, { const LilvPort* port = lilv_plugin_get_port_by_index(p, index); - printf("\n\tPort %d:\n", index); + printf("\n\tPort %u:\n", index); if (!port) { printf("\t\tERROR: Illegal/nonexistent port\n"); @@ -183,7 +183,7 @@ print_plugin(LilvWorld* world, if (lilv_plugin_has_latency(p)) { uint32_t latency_port = lilv_plugin_get_latency_port_index(p); - printf("\tHas latency: yes, reported by port %d\n", latency_port); + printf("\tHas latency: yes, reported by port %u\n", latency_port); } else { printf("\tHas latency: no\n"); } |