mzrouter/mzDebug.c: (intmax_t) %lx Wrong type of arguments to formatting function
Copilot Autofix rejected: TxPrintf("tile %p (x: %d to %d, y: %d to %d)\n"
CodeQL: https://github.com/dlmiles/magic/security/code-scanning/101
This commit is contained in:
parent
2c8c60510b
commit
7509802b3d
|
|
@ -22,6 +22,7 @@ static char rcsid[] __attribute__ ((unused)) = "$$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "utils/magic.h"
|
#include "utils/magic.h"
|
||||||
#include "utils/signals.h"
|
#include "utils/signals.h"
|
||||||
|
|
@ -540,8 +541,8 @@ mzDumpTagsFunc(tile, cxp)
|
||||||
TITORECT(tile, &r);
|
TITORECT(tile, &r);
|
||||||
|
|
||||||
/* print tile bounds */
|
/* print tile bounds */
|
||||||
TxPrintf("tile %x (x: %d to %d, y: %d to %d)\n",
|
TxPrintf("tile %lx (x: %d to %d, y: %d to %d)\n",
|
||||||
(pointertype) tile, r.r_xbot, r.r_xtop, r.r_ybot, r.r_ytop);
|
(intmax_t) (pointertype) tile, r.r_xbot, r.r_xtop, r.r_ybot, r.r_ytop);
|
||||||
|
|
||||||
/* dump rects attached to client field */
|
/* dump rects attached to client field */
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue