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:
parent
8f60ed472b
commit
9f052c0e4d
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue