|
From: <sv...@va...> - 2009-05-20 06:59:28
|
Author: njn
Date: 2009-05-20 07:59:19 +0100 (Wed, 20 May 2009)
New Revision: 10041
Log:
On x86-linux, send debuglog output to stderr, not stdout.
Modified:
trunk/coregrind/m_debuglog.c
Modified: trunk/coregrind/m_debuglog.c
===================================================================
--- trunk/coregrind/m_debuglog.c 2009-05-20 06:55:05 UTC (rev 10040)
+++ trunk/coregrind/m_debuglog.c 2009-05-20 06:59:19 UTC (rev 10041)
@@ -71,7 +71,7 @@
"movl 0(%%ebx), %%ecx\n" /* %ecx = buf */
"movl 4(%%ebx), %%edx\n" /* %edx = n */
"movl $"VG_STRINGIFY(__NR_write)", %%eax\n" /* %eax = __NR_write */
- "movl $1, %%ebx\n" /* %ebx = stderr */
+ "movl $2, %%ebx\n" /* %ebx = stderr */
"int $0x80\n" /* write(stderr, buf, n) */
"popl %%ebx\n" /* reestablish &block */
"movl %%eax, 0(%%ebx)\n" /* block[0] = result */
|