diff options
author | David Robillard <d@drobilla.net> | 2020-07-18 11:30:00 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-18 11:30:00 +0200 |
commit | 99c33a440e64feef28b1784b729e646a84877ffc (patch) | |
tree | c3b5d30257bbed1a203151af78ef18ead4ffc0e3 | |
parent | e296fff5f1d7345ce8f22efd37c1ec23e261fee1 (diff) | |
download | ingen-99c33a440e64feef28b1784b729e646a84877ffc.tar.gz ingen-99c33a440e64feef28b1784b729e646a84877ffc.tar.bz2 ingen-99c33a440e64feef28b1784b729e646a84877ffc.zip |
Fix incorrect format specifiers
-rw-r--r-- | src/Log.cpp | 2 | ||||
-rw-r--r-- | 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"); |