From 3485be851f4fff1c9c6fe621f0619d2b4103bc06 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 19 Apr 2025 12:28:52 +0200 Subject: Improved logging, especially for solve --- src/utils/math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/math.h b/src/utils/math.h index 1ae4013..3ecd313 100644 --- a/src/utils/math.h +++ b/src/utils/math.h @@ -138,7 +138,7 @@ digitstosumzero(size_t n, const uint8_t a[n], uint8_t b) size_t i, sum; if (!((n == 8 && b == 3 ) || (n == 12 && b == 2))) { - LOG("Won't compute 'sumzero' for n=%zu and b=%" PRIu8 + LOG("Error: won't compute 'sumzero' for n=%zu and b=%" PRIu8 " (use n=8 b=3 or n=12 b=2)\n", n, b); return -1; } @@ -168,7 +168,7 @@ 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=%zu and b=%" PRIu8 + LOG("Error: 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