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>
This commit is contained in:
Darryl Miles
2024-10-01 12:36:12 -04:00
committed by Tim Edwards
co-authored by Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
parent 384e59ea98
commit 6946ea6845
+3 -3
View File
@@ -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)));