aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-19 12:28:52 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-19 12:28:52 +0200
commit3485be851f4fff1c9c6fe621f0619d2b4103bc06 (patch)
tree894197f164a7ef66801ae3a701fb10a3c1e3f5e3 /src/utils
parent691da8f06614418ed847bdeefa4e708c372a3ecf (diff)
downloadnissy-core-3485be851f4fff1c9c6fe621f0619d2b4103bc06.tar.gz
nissy-core-3485be851f4fff1c9c6fe621f0619d2b4103bc06.zip
Improved logging, especially for solve
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/math.h4
1 files changed, 2 insertions, 2 deletions
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)
138 size_t i, sum; 138 size_t i, sum;
139 139
140 if (!((n == 8 && b == 3 ) || (n == 12 && b == 2))) { 140 if (!((n == 8 && b == 3 ) || (n == 12 && b == 2))) {
141 LOG("Won't compute 'sumzero' for n=%zu and b=%" PRIu8 141 LOG("Error: won't compute 'sumzero' for n=%zu and b=%" PRIu8
142 " (use n=8 b=3 or n=12 b=2)\n", n, b); 142 " (use n=8 b=3 or n=12 b=2)\n", n, b);
143 return -1; 143 return -1;
144 } 144 }
@@ -168,7 +168,7 @@ sumzerotodigits(int64_t d, size_t n, uint8_t b, uint8_t a[n])
168 size_t i; 168 size_t i;
169 169
170 if (!((n == 8 && b == 3 ) || (n == 12 && b == 2))) { 170 if (!((n == 8 && b == 3 ) || (n == 12 && b == 2))) {
171 LOG("Won't compute 'digits' for n=%zu and b=%" PRIu8 171 LOG("Error: won't compute 'digits' for n=%zu and b=%" PRIu8
172 " (use n=8 b=3 or n=12 b=2)\n", n, b); 172 " (use n=8 b=3 or n=12 b=2)\n", n, b);
173 goto sumzerotodigits_error; 173 goto sumzerotodigits_error;
174 } 174 }

Generated with cgit - Back to sebastiano.tronto.net