]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
On x86-linux, send debuglog output to stderr, not stdout.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 20 May 2009 06:59:19 +0000 (06:59 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 20 May 2009 06:59:19 +0000 (06:59 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10041

coregrind/m_debuglog.c

index c6b0329fbe809b492dd58b357c5a80da8876f6dc..431e04e0990ebf6546212b6090295b1a1a392ff4 100644 (file)
@@ -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 */