gdbstub: Fixed gdb_open() does not work issue while an extra 'x' is being added when converting '%s' to a pointer
PATCH 1/1 gdbstub: Fixed gdb_open() does not work issue while an extra 'x' is being added when converting '%s' to a pointer
From: Foxes Hung <[email protected]>
Signed-off-by Foxes Hung <[email protected]>
--- gdbstub/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
gdbstub/syscalls.c +1 -1
@@ -126,7 +126,7 @@ void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...)case 's' : i64 =va_arg (va, uint64_t); i32 =va_arg (va, uint32_t); - p +=snprintf (p, p_end - p,"%" PRIx64"/%x" PRIx32, i64, i32); + p +=snprintf (p, p_end - p,"%" PRIx64"/%" PRIx32, i64, i32);break ;default : bad_format:
Signature · 1 line
2.38.5