From: Nicholas Nethercote Date: Wed, 20 May 2009 06:59:19 +0000 (+0000) Subject: On x86-linux, send debuglog output to stderr, not stdout. X-Git-Tag: svn/VALGRIND_3_5_0~638 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a110f34ebe8f88e39852505d243c6b1624ef717;p=thirdparty%2Fvalgrind.git On x86-linux, send debuglog output to stderr, not stdout. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10041 --- diff --git a/coregrind/m_debuglog.c b/coregrind/m_debuglog.c index c6b0329fbe..431e04e099 100644 --- a/coregrind/m_debuglog.c +++ b/coregrind/m_debuglog.c @@ -71,7 +71,7 @@ static UInt local_sys_write_stderr ( HChar* buf, Int n ) "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 */