From e4f356b9592599ad91aac34bf2265c9bcdfbb81f Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 8 Apr 2025 15:16:21 +0200 Subject: Some minor changes to the interface. - Simplified logger to accept only a string, not a variadic list of args like printf(). This can still use some improvement, but now it is easier to use from other languages. - Fixed some misuses of the logger (wrong types etc) - Renamed some constants - Fixed some typos in comments. --- src/utils/math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/math.h') diff --git a/src/utils/math.h b/src/utils/math.h index a9d9b85..1ae4013 100644 --- a/src/utils/math.h +++ b/src/utils/math.h @@ -168,8 +168,8 @@ sumzerotodigits(int64_t d, size_t n, uint8_t b, uint8_t a[n]) size_t i; if (!((n == 8 && b == 3 ) || (n == 12 && b == 2))) { - LOG("Won't compute 'digits' for n=%" PRIu8 "and b=%" PRIu8 - " (use n=8 b=3 or n=12 b=2)\n"); + LOG("Won't compute 'digits' for n=%zu and b=%" PRIu8 + " (use n=8 b=3 or n=12 b=2)\n", n, b); goto sumzerotodigits_error; } -- cgit v1.3