grouter/grouteTest.c: Wrong type of arguments to formatting function
Fix code scanning alert no. 100: Wrong type of arguments to formatting function (#31) * Update grouteTest.c * AI suggested just "%p", DLM modified to used intmax_t cast. --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
21924ec151
commit
77c1082886
|
|
@ -21,6 +21,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
|||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
@ -371,9 +372,9 @@ glShowCross(pin, netId, kind)
|
|||
{
|
||||
(void) strcpy(name1, NLNetName(pin->gcr_pId));
|
||||
(void) strcpy(name2, NLNetName(netId.netid_net));
|
||||
TxPrintf("%s (%d,%d), Net %s/%d->%s/%d, Ch %d\n",
|
||||
TxPrintf("%s (%d,%d), Net %s/%d->%s/%d, Ch %ld\n",
|
||||
name, pin->gcr_point.p_x, pin->gcr_point.p_y,
|
||||
name1, pin->gcr_pSeg, name2, netId.netid_seg, pin->gcr_ch);
|
||||
name1, pin->gcr_pSeg, name2, netId.netid_seg, (intmax_t) pin->gcr_ch);
|
||||
}
|
||||
|
||||
r.r_ll = r.r_ur = pin->gcr_point;
|
||||
|
|
|
|||
Loading…
Reference in New Issue