aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/coord/gendata.h
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/solvers/coord/gendata.h
parent691da8f06614418ed847bdeefa4e708c372a3ecf (diff)
downloadnissy-core-3485be851f4fff1c9c6fe621f0619d2b4103bc06.tar.gz
nissy-core-3485be851f4fff1c9c6fe621f0619d2b4103bc06.zip
Improved logging, especially for solve
Diffstat (limited to 'src/solvers/coord/gendata.h')
-rw-r--r--src/solvers/coord/gendata.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/solvers/coord/gendata.h b/src/solvers/coord/gendata.h
index 6abb5eb..ae7b39e 100644
--- a/src/solvers/coord/gendata.h
+++ b/src/solvers/coord/gendata.h
@@ -22,7 +22,7 @@ gendata_coord_dispatch(const char *coordstr, void *buf)
22 parse_coord_and_axis(strlen(coordstr), coordstr, &coord, NULL); 22 parse_coord_and_axis(strlen(coordstr), coordstr, &coord, NULL);
23 23
24 if (coord == NULL) { 24 if (coord == NULL) {
25 LOG("Could not parse coordinate '%s'\n", coordstr); 25 LOG("Error: could not parse coordinate '%s'\n", coordstr);
26 return NISSY_ERROR_INVALID_SOLVER; 26 return NISSY_ERROR_INVALID_SOLVER;
27 } 27 }
28 28
@@ -82,7 +82,7 @@ gendata_coord_return_size:
82 return ninfo * INFOSIZE + coord_dsize + tablesize; 82 return ninfo * INFOSIZE + coord_dsize + tablesize;
83 83
84gendata_coord_error: 84gendata_coord_error:
85 LOG("An unexpected error occurred when generating the data.\n"); 85 LOG("Unexpected error generating coordinate data\n");
86 return 0; 86 return 0;
87} 87}
88 88
@@ -136,8 +136,9 @@ genptable_coord(
136 } 136 }
137 tot += t; 137 tot += t;
138 info.distribution[d] = t; 138 info.distribution[d] = t;
139 LOG("Depth %" PRIu64 ": found %" PRIu64 " (%" PRIu64 " of %" 139 LOG("[%s gendata] Depth %" PRIu64 ": found %" PRIu64 " (%"
140 PRIu64 ")\n", d, t, tot, coord->max); 140 PRIu64 " of %" PRIu64 ")\n",
141 coord->name, d, t, tot, coord->max);
141 } 142 }
142 info.maxvalue = d-1; 143 info.maxvalue = d-1;
143 144

Generated with cgit - Back to sebastiano.tronto.net