From 99c33a440e64feef28b1784b729e646a84877ffc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Jul 2020 11:30:00 +0200 Subject: Fix incorrect format specifiers --- src/Log.cpp | 2 +- src/server/Buffer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Log.cpp b/src/Log.cpp index cf18b58c..26112877 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -108,7 +108,7 @@ Log::vtprintf(LV2_URID type, const char* fmt, va_list args) ColorContext ctx(stderr, ColorContext::Color::GREEN); ret = vfprintf(stderr, fmt, args); } else { - fprintf(stderr, "Unknown log type %d\n", type); + fprintf(stderr, "Unknown log type %u\n", type); return 0; } if (_flush) { diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp index fffc86b0..371c7cbf 100644 --- a/src/server/Buffer.cpp +++ b/src/server/Buffer.cpp @@ -435,7 +435,7 @@ Buffer::dump_cv(const RunContext& context) const for (uint32_t i = 0; i < context.nframes(); ++i) { if (samples()[i] != value) { value = samples()[i]; - fprintf(stderr, " %4d: %.02f\n", i, value); + fprintf(stderr, " %4u: %.02f\n", i, value); } } fprintf(stderr, "}\n"); -- cgit v1.2.1