From cf90d509996b319cf70d94b96c3449337abe52b0 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 05:43:36 +0100 Subject: [PATCH] grouter/grouteMaze.c: Wrong type of arguments to formatting function * Fix code scanning alert no. 99: Wrong type of arguments to formatting function Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Update grouteMaze.c --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- grouter/grouteMaze.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/grouter/grouteMaze.c b/grouter/grouteMaze.c index d422d6ba..2615adc7 100644 --- a/grouter/grouteMaze.c +++ b/grouter/grouteMaze.c @@ -26,6 +26,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/ #endif /* not lint */ #include +#include #include "utils/magic.h" #include "utils/geometry.h" #include "utils/geofast.h" @@ -595,10 +596,10 @@ glPathPrint(path) pin = rp->gl_pin; ch = pin->gcr_ch; tp = rp->gl_tile; - TxPrintf("(%d,%d) cost=%d pcost=%d pId=%d/%d\n", + TxPrintf("(%d,%d) cost=%d pcost=%d pId=%ld/%d\n", pin->gcr_point.p_x, pin->gcr_point.p_y, rp->gl_cost, pin->gcr_cost, - pin->gcr_pId, pin->gcr_pSeg); + (intmax_t) pin->gcr_pId, pin->gcr_pSeg); TxPrintf("\tchan=(%d,%d,%d,%d)/%d\n", ch->gcr_area.r_xbot, ch->gcr_area.r_ybot, ch->gcr_area.r_xtop, ch->gcr_area.r_ytop,