Back out previous logging patches (92791a422f0a and 5617c22ea9ac) for bug 469514.

This commit is contained in:
L. David Baron 2009-04-22 15:21:17 -07:00
Родитель 08ff90810b
Коммит 6ea9c9d5f9
2 изменённых файлов: 0 добавлений и 30 удалений

Просмотреть файл

@ -98,11 +98,6 @@ public:
mTarget->Dispatch(this, NS_DISPATCH_NORMAL);
if (NS_FAILED(rv)) {
NS_WARNING("Dispatch failed");
#ifdef DEBUG
(void)fprintf(stdout,
"### mTarget (%p) may not be accepting events!\n",
mTarget.get());
#endif
return NS_ERROR_FAILURE;
}
@ -182,11 +177,6 @@ public:
mTarget->Dispatch(this, NS_DISPATCH_NORMAL);
if (NS_FAILED(rv)) {
NS_WARNING("PostEvent failed");
#ifdef DEBUG
(void)fprintf(stdout,
"### mTarget (%p) may not be accepting events!\n",
mTarget.get());
#endif
return NS_ERROR_FAILURE;
}

Просмотреть файл

@ -43,21 +43,6 @@
#include "nsAutoPtr.h"
#include "nsAutoLock.h"
#ifdef DEBUG
#include "nsStackWalk.h"
static void
thread_stack_callback(void *aPC, void *)
{
char buf[1024];
nsCodeAddressDetails details;
(void)NS_DescribeCodeAddress(aPC, &details);
(void)NS_FormatCodeAddressDetails(aPC, &details, buf, sizeof(buf));
(void)fprintf(stdout, buf);
}
#endif
typedef nsTArray< nsRefPtr<nsThread> > nsThreadArray;
//-----------------------------------------------------------------------------
@ -247,11 +232,6 @@ nsThreadManager::NewThread(PRUint32 creationFlags, nsIThread **result)
// At this point, we expect that the thread has been registered in mThread;
// however, it is possible that it could have also been replaced by now, so
// we cannot really assert that it was added.
#ifdef DEBUG
(void)fprintf(stdout, "### Creating thread with address %p\n", thr);
(void)NS_StackWalk(thread_stack_callback, 0, nsnull);
(void)fprintf(stdout, "\n\n");
#endif
*result = thr;
return NS_OK;