In article <[email protected]>, Christos Zoulas <[email protected]> wrote: >In article <[email protected]>, >Kamil Rytarowski <[email protected]> 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
