Bug 712341 - Make dump in workers show up in adb logcat. r=bent

--HG--
extra : rebase_source : c17d8195b47dd908fa98e371b12647ccfccfc760
This commit is contained in:
Blake Kaplan 2011-12-07 02:29:34 -08:00
parent d3ab7dccf4
commit d0e14951d1
2 changed files with 14 additions and 1 deletions

View File

@ -79,6 +79,9 @@
#include "Worker.h"
#include "WorkerFeature.h"
#include "WorkerScope.h"
#ifdef ANDROID
#include <android/log.h>
#endif
#include "WorkerInlines.h"
@ -1149,7 +1152,11 @@ public:
}
if (!logged) {
fputs(NS_ConvertUTF16toUTF8(aMessage).get(), stderr);
NS_ConvertUTF16toUTF8 msg(aMessage);
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", msg.get());
#endif
fputs(msg.get(), stderr);
fflush(stderr);
}

View File

@ -61,6 +61,9 @@
#include "Worker.h"
#include "WorkerPrivate.h"
#include "XMLHttpRequest.h"
#ifdef ANDROID
#include <android/log.h>
#endif
#include "WorkerInlines.h"
@ -517,6 +520,9 @@ private:
return false;
}
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", buffer.ptr());
#endif
fputs(buffer.ptr(), stderr);
fflush(stderr);
}