]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: Fix semctl() strace
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 25 Mar 2024 19:22:59 +0000 (20:22 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 27 Mar 2024 04:20:36 +0000 (18:20 -1000)
commitb9f38374ac466b6582f4e6e42dbff7372da079b2
tree9e3f0ee98bd83b8df8550bd75bd4287706aeb4d2
parent5012e522aca161be5c141596c66e5cc6082538a9
linux-user: Fix semctl() strace

The indices of arguments used with semctl() are all off-by-1, because
arg1 is the ipc() command. Fix them. While at it, reuse print_semctl().

New output (for a small test program):

    3540333 semctl(999,888,SEM_INFO,0x00007fe5051ee9a0) = -1 errno=14 (Bad address)

Fixes: 7ccfb2eb5f9d ("Fix warnings that would be caused by gcc flag -Wwrite-strings")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20240325192436.561154-2-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/strace.c