From 9f052c0e4d1c643f311636399944d95db375e135 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 03:49:39 +0100 Subject: [PATCH] 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> --- utils/undo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/undo.c b/utils/undo.c index 06b85292..1f36da32 100644 --- a/utils/undo.c +++ b/utils/undo.c @@ -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)