From: Julian Seward Date: Thu, 26 Aug 2010 09:40:37 +0000 (+0000) Subject: arm-linux: send output to stderr, as on all other platforms. X-Git-Tag: svn/VALGRIND_3_6_0~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0091f446119811eb4dcdc392bd4279dd55535cf;p=thirdparty%2Fvalgrind.git arm-linux: send output to stderr, as on all other platforms. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11290 --- diff --git a/coregrind/m_debuglog.c b/coregrind/m_debuglog.c index 7b2348fbc6..473771b1c6 100644 --- a/coregrind/m_debuglog.c +++ b/coregrind/m_debuglog.c @@ -240,9 +240,9 @@ static UInt local_sys_write_stderr ( HChar* buf, Int n ) block[0] = (Int)buf; block[1] = n; __asm__ volatile ( - "mov r0, #1\n\t" - "ldr r1, [%0]\n\t" - "ldr r2, [%0, #4]\n\t" + "mov r0, #2\n\t" /* stderr */ + "ldr r1, [%0]\n\t" /* buf */ + "ldr r2, [%0, #4]\n\t" /* n */ "mov r7, #"VG_STRINGIFY(__NR_write)"\n\t" "svc 0x0\n" /* write() */ "str r0, [%0]\n\t"