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/solvers/coord/gendata.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/solvers/coord/gendata.h') 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) parse_coord_and_axis(strlen(coordstr), coordstr, &coord, NULL); if (coord == NULL) { - LOG("Could not parse coordinate '%s'\n", coordstr); + LOG("Error: could not parse coordinate '%s'\n", coordstr); return NISSY_ERROR_INVALID_SOLVER; } @@ -82,7 +82,7 @@ gendata_coord_return_size: return ninfo * INFOSIZE + coord_dsize + tablesize; gendata_coord_error: - LOG("An unexpected error occurred when generating the data.\n"); + LOG("Unexpected error generating coordinate data\n"); return 0; } @@ -136,8 +136,9 @@ genptable_coord( } tot += t; info.distribution[d] = t; - LOG("Depth %" PRIu64 ": found %" PRIu64 " (%" PRIu64 " of %" - PRIu64 ")\n", d, t, tot, coord->max); + LOG("[%s gendata] Depth %" PRIu64 ": found %" PRIu64 " (%" + PRIu64 " of %" PRIu64 ")\n", + coord->name, d, t, tot, coord->max); } info.maxvalue = d-1; -- cgit v1.3