NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/51649: PRIxREGISTER and PTRACE_REG_* mismatch
>Number: 51649
>Category: kern
>Synopsis: PRIxREGISTER and PTRACE_REG_* mismatch
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 24 22:05:00 +0000 2016
>Originator: Kamil Rytarowski
>Release: NetBSD 7.99.42 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 7.99.42 NetBSD 7.99.42 (GENERIC) #2: Wed Nov 23 20:32:48 CET 2016 root@chieftec:/public/netbsd-tmp-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
There is mismatch for PRIxREGISTER and PTRACE_REG_* at least on sparc.
Build log:
/usr/src/tests/kernel/t_ptrace_wait.c: In function 'atfu_regs2_body':
/usr/src/tests/kernel/t_ptrace_wait.c:4167:9: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Werror=format=]
printf("Retrieved PC=%" PRIxREGISTER "\n", PTRACE_REG_PC(&r));
^
/usr/src/tests/kernel/t_ptrace_wait.c:4167:9: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Werror=format=]
/usr/src/tests/kernel/t_ptrace_wait.c: In function 'atfu_regs3_body':
/usr/src/tests/kernel/t_ptrace_wait.c:4223:9: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Werror=format=]
printf("Retrieved SP=%" PRIxREGISTER "\n", PTRACE_REG_SP(&r));
^
/usr/src/tests/kernel/t_ptrace_wait.c:4223:9: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Werror=format=]
/usr/src/tests/kernel/t_ptrace_wait.c: In function 'atfu_regs4_body':
/usr/src/tests/kernel/t_ptrace_wait.c:4279:9: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Werror=format=]
printf("Retrieved INTRV=%" PRIxREGISTER "\n", PTRACE_REG_INTRV(&r));
^
/usr/src/tests/kernel/t_ptrace_wait.c:4279:9: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Werror=format=]
This breaks build on releng machines with sparc.
>How-To-Repeat:
./build.sh -m sparc -N0 -u -U -j8 -O /public/netbsd-tmp-sparc distribution
>Fix:
N/A
Home |
Main Index |
Thread Index |
Old Index