utils/undo.c: Wrong type of arguments to formatting function

Fix code scanning alert no. 117: Wrong type of arguments to formatting function (#16)

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-09-30 03:49:39 +01:00 committed by Tim Edwards
parent 8f60ed472b
commit 9f052c0e4d
1 changed files with 4 additions and 4 deletions

View File

@ -924,8 +924,8 @@ undoPrintForw(iup, n)
{
int i = 0;
(void) TxPrintf("head=0x%x\ttail=0x%x\tcur=0x%x\n",
undoLogHead, undoLogTail, undoLogCur);
(void) TxPrintf("head=%p\ttail=%p\tcur=%p\n",
(void *)undoLogHead, (void *)undoLogTail, (void *)undoLogCur);
if (iup == (internalUndoEvent *) NULL)
iup = undoLogHead;
while (iup != (internalUndoEvent *) NULL)
@ -947,8 +947,8 @@ undoPrintBack(iup, n)
{
int i = 0;
(void) TxPrintf("head=0x%x\ttail=0x%x\tcur=0x%x\n",
undoLogHead, undoLogTail, undoLogCur);
(void) TxPrintf("head=%p\ttail=%p\tcur=%p\n",
(void *)undoLogHead, (void *)undoLogTail, (void *)undoLogCur);
if (iup == (internalUndoEvent *) NULL)
iup = undoLogTail;
while (iup != (internalUndoEvent *) NULL)