In article <o1aegv$210$1...@blaine.gmane.org>,
Christos Zoulas <chris...@astron.com> wrote:
>In article <20161125200105.5dbb4f...@cvs.netbsd.org>,
>Kamil Rytarowski <source-changes-d@NetBSD.org> wrote:
>>-=-=-=-=-=-
>>
>>Module Name:  src
>>Committed By: kamil
>>Date:         Fri Nov 25 20:01:05 UTC 2016
>>
>>Modified Files:
>>      src/tests/kernel: t_ptrace_wait.c
>>
>>Log Message:
>>Fix several printf(3)-like functions usage with printing integers
>>
>>Integers as hex shall no be printed with PRIx8, but with plain "x".
>
>I would use %#x...

And I am not sure that passing 'int x; ptrace(.., &x, ...);' is right when
reading/writing 1 byte. It works on x86 if you initialize x = 0, but
it will will not work on sparc64, I think. Perhaps you need to pass
'uint8_t x; ptrace(, ..., &x, ...);' Then the printf format is right :-)

christos

Reply via email to