Bug 728986: dump() writes to stdout instead of stderr. r=bent

This commit is contained in:
Mark Hammond 2012-03-06 15:44:37 +11:00
parent c6d4d0e166
commit 6f18fbf7c7
2 changed files with 4 additions and 4 deletions

View File

@ -528,8 +528,8 @@ private:
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", buffer.ptr());
#endif
fputs(buffer.ptr(), stderr);
fflush(stderr);
fputs(buffer.ptr(), stdout);
fflush(stdout);
}
return true;

View File

@ -2799,8 +2799,8 @@ SandboxDump(JSContext *cx, unsigned argc, jsval *vp)
}
#endif
fputs(cstr, stderr);
fflush(stderr);
fputs(cstr, stdout);
fflush(stdout);
NS_Free(cstr);
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return true;