From 9f6f48661c7fec42bb9ebeeec4d7828e37b786bd Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Sat, 26 Oct 2024 03:34:43 +0100 Subject: src/test: Fix missing parameter to nxt_log_alert() in nxt_base64_test() nxt_log_alert() was missing the nxt_str_t parameter as required by the %V format specifier. This was found with the Unit clang-ast plugin. Fixes: 7bf625394 ("Custom implementation of Base64 decoding function.") Signed-off-by: Andrew Clayton --- src/test/nxt_base64_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/nxt_base64_test.c b/src/test/nxt_base64_test.c index 13a772b6..579cbf95 100644 --- a/src/test/nxt_base64_test.c +++ b/src/test/nxt_base64_test.c @@ -87,7 +87,8 @@ nxt_base64_test(nxt_thread_t *thr) ret = nxt_base64_decode(buf, tests[i].enc.start, tests[i].enc.length); if (!nxt_str_eq(&tests[i].dec, buf, (size_t) ret)) { - nxt_log_alert(thr->log, "nxt_base64_decode() test \"%V\" failed"); + nxt_log_alert(thr->log, "nxt_base64_decode() test \"%V\" failed", + &tests[i].enc); return NXT_ERROR; } } -- cgit