]> granicus.if.org Git - strace/commit
syslog: fix argument printing
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 27 Sep 2018 05:12:18 +0000 (07:12 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 5 Aug 2019 22:48:31 +0000 (22:48 +0000)
commit43946df838529fb810cc203411defdadefb242db
tree6b0fe5baf0e68032bf3fb5be82c550a3a30729c8
parent2ae13b1b501e945274fa27f2b61a77f4e2be4697
syslog: fix argument printing

* syslog.c (SYS_FUNC(syslog)): Store conversion to int of tcp->u_arg[2]
in len; print address using printaddr64 (as syslog doesn't use compat
for x32), and third argument as int (as it has this type in the syscall
handler).
* tests/syslog.c: Add checks.
syslog.c
tests/syslog.c