[PATCH v2 3/7] Use printpid in decoders
Dmitry V. Levin
ldv at altlinux.org
Wed Jul 22 22:47:20 UTC 2020
On Tue, Jul 21, 2020 at 11:19:21PM +0200, Ákos Uzonyi wrote:
[...]
> * tests/bpf.c (BPF_TASK_FD_QUERY_checks): Use smaller PIDs.
> * tests/ioctl_block.c (main): Print PID as signed integer.
I couldn't find these changes in the patch. :)
[...]
> --- a/tests/pidfd_send_signal.c
> +++ b/tests/pidfd_send_signal.c
> @@ -57,7 +57,7 @@ main(void)
> ", si_code=SI_QUEUE, si_errno=%u, si_pid=%d, si_uid=%d"
> ", si_value={int=%d, ptr=%p}}, %#x) = %s\n",
> fd, si->si_errno, si->si_pid, si->si_uid, si->si_int, si->si_ptr,
> - -1U, errstr);
> + -1, errstr);
As the value is printed using %#x format, why this change is needed?
--
ldv
More information about the Strace-devel
mailing list