commit 7022ea9b0576406ac1cdb4491384161e7137c45c
parent ccbbe7324ec0e1d8e83dda0ad5a9c50cc19fac01
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 8 Feb 2019 11:18:14 +0100
Fix a warning log output
Diffstat:
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/senc2d_scene_analyze.c b/src/senc2d_scene_analyze.c
@@ -847,8 +847,10 @@ collect_and_link_neighbours
previous = darray_neighbour_cdata_get(neighbourhood) + i - 1;
prev_id = previous->seg_id;
log_err(scn->dev,
- "%s: found 2 overlying segments (%u & %u).\n",
- FUNC_NAME, prev_id, crt_id);
+ "%s: found 2 overlying segments (%lu & %lu).\n", FUNC_NAME,
+ (unsigned long)segments_in[crt_id].global_id,
+ (unsigned long)segments_in[prev_id].global_id);
+
/* TODO */
*res = RES_BAD_OP;
return;
@@ -875,8 +877,10 @@ collect_and_link_neighbours
&& p_crt_side->medium != p_ccw_side->medium)
{
log_warn(scn->dev,
- "%s: found possible hole involving segments %u.\n",
- FUNC_NAME, crt_id);
+ "%s: found possible hole involving segment %lu.\n"
+ " Vertex: %g %g %g\n",
+ FUNC_NAME, (unsigned long)segments_in[crt_id].global_id,
+ SPLIT3(vertices[v].vec));
}
}
}