From 6946ea68459ba720d2ae02bf80c4ed62bacada85 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 04:51:06 +0100 Subject: [PATCH] plow/PlowTest.c: Wrong type of arguments to formatting function Fix code scanning alert no. 106: Wrong type of arguments to formatting function (#30) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- plow/PlowTest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plow/PlowTest.c b/plow/PlowTest.c index ac59df2b..a291008d 100644 --- a/plow/PlowTest.c +++ b/plow/PlowTest.c @@ -334,7 +334,7 @@ PlowTest(w, cmd) break; case PC_MERGEDOWN: tp = TiSrPointNoHint(plane, &editArea.r_ll); - TxPrintf("Merging tile 0x%x below\n", tp); + TxPrintf("Merging tile %p below\n", tp); TiToRect(tp, &editArea); TiToRect(RT(tp), &area2); (void) GeoInclude(&area2, &editArea); @@ -343,7 +343,7 @@ PlowTest(w, cmd) break; case PC_MERGEUP: tp = TiSrPointNoHint(plane, &editArea.r_ll); - TxPrintf("Merging tile 0x%x above\n", tp); + TxPrintf("Merging tile %p above\n", tp); TiToRect(tp, &editArea); TiToRect(RT(tp), &area2); (void) GeoInclude(&area2, &editArea); @@ -352,7 +352,7 @@ PlowTest(w, cmd) break; case PC_PRINT: tp = TiSrPointNoHint(plane, &editArea.r_ll); - TxPrintf("Tile 0x%x LEFT=%d RIGHT=%d BOTTOM=%d TOP=%d\n", + TxPrintf("Tile %p LEFT=%d RIGHT=%d BOTTOM=%d TOP=%d\n", tp, LEFT(tp), RIGHT(tp), BOTTOM(tp), TOP(tp)); TxPrintf(" TRAILING=%d LEADING=%d TYPE=%s\n", TRAILING(tp), LEADING(tp), DBTypeLongName(TiGetTypeExact(tp)));