Skip to content

Commit 6e5f168

Browse files
Potential fix for code scanning alert: Wrong type of arguments to formatting function
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 6d5890c commit 6e5f168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socket/arch/LinuxX64/kprobe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static ssize_t proc_read(struct file *file, char __user *buffer, size_t count, l
4343
len = snprintf(output, sizeof(output),
4444
"RIP=0x%lx RSP=0x%lx RBP=0x%lx RAX=0x%lx RBX=0x%lx RCX=0x%lx RDX=0x%lx "
4545
"RSI=0x%lx RDI=0x%lx R8=0x%lx R9=0x%lx R10=0x%lx R11=0x%lx R12=0x%lx "
46-
"R13=0x%lx R14=0x%lx R15=0x%lx EFLAGS=0x%lx CS=0x%lx SS=0x%lx ORIG_RAX=0x%lx\n",
46+
"R13=0x%lx R14=0x%lx R15=0x%lx EFLAGS=0x%lx CS=0x%lx SS=0x%x ORIG_RAX=0x%lx\n",
4747
captured_regs.ip, captured_regs.sp, captured_regs.bp, captured_regs.ax,
4848
captured_regs.bx, captured_regs.cx, captured_regs.dx, captured_regs.si,
4949
captured_regs.di, captured_regs.r8, captured_regs.r9, captured_regs.r10,

0 commit comments

Comments
 (0)