Re: [Qemu-devel] [PATCH] linux-user/strace.c: Correct errno printing for mmap etc

2011-11-23 Thread Riku Voipio
On Mon, Nov 21, 2011 at 12:21:19PM +, Peter Maydell wrote: Correct the printing of errnos for syscalls which are handled via print_syscall_ret_addr (mmap, mmap2, brk, shmat): errnos are returned as negative returned values at this level, not via the host 'errno' variable. Signed-off-by:

Re: [Qemu-devel] [PATCH] linux-user/strace.c: Correct errno printing for mmap etc

2011-11-23 Thread Alexander Graf
On 11/23/2011 02:15 PM, Riku Voipio wrote: On Mon, Nov 21, 2011 at 12:21:19PM +, Peter Maydell wrote: Correct the printing of errnos for syscalls which are handled via print_syscall_ret_addr (mmap, mmap2, brk, shmat): errnos are returned as negative returned values at this level, not via

[Qemu-devel] [PATCH] linux-user/strace.c: Correct errno printing for mmap etc

2011-11-21 Thread Peter Maydell
Correct the printing of errnos for syscalls which are handled via print_syscall_ret_addr (mmap, mmap2, brk, shmat): errnos are returned as negative returned values at this level, not via the host 'errno' variable. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- This applies on top of