mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 712341 - Make dump in workers show up in adb logcat. r=bent
--HG-- extra : rebase_source : c17d8195b47dd908fa98e371b12647ccfccfc760
This commit is contained in:
parent
d3ab7dccf4
commit
d0e14951d1
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user