aboutsummaryrefslogtreecommitdiff
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2024-03-25 20:22:59 +0100
committerRichard Henderson <richard.henderson@linaro.org>2024-03-26 18:20:36 -1000
commitb9f38374ac466b6582f4e6e42dbff7372da079b2 (patch)
tree9e3f0ee98bd83b8df8550bd75bd4287706aeb4d2 /hw/net/virtio-net.c
parent5012e522aca161be5c141596c66e5cc6082538a9 (diff)
downloadqemu-b9f38374ac466b6582f4e6e42dbff7372da079b2.zip
qemu-b9f38374ac466b6582f4e6e42dbff7372da079b2.tar.gz
qemu-b9f38374ac466b6582f4e6e42dbff7372da079b2.tar.bz2
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>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions