From 5946c0c8bfb87aeb8f08d2aac539339c9ca5d8c3 Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Wed, 12 Jul 2000 00:28:57 +0000 Subject: [PATCH] Bug 40810 - warning message. Checking in for doronr@naboonline.com r=warren --- xpcom/base/nsTraceRefcnt.cpp | 5 ++++- xpcom/base/nsTraceRefcntImpl.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/xpcom/base/nsTraceRefcnt.cpp b/xpcom/base/nsTraceRefcnt.cpp index 5d3e423e350b..025de12d115c 100644 --- a/xpcom/base/nsTraceRefcnt.cpp +++ b/xpcom/base/nsTraceRefcnt.cpp @@ -450,6 +450,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, FILE* out) nsresult rv = NS_OK; #ifdef NS_BUILD_REFCNT_LOGGING if (gBloatLog == nsnull || gBloatView == nsnull) { + fprintf(stdout, "Must define environmental variable " \ + "XPCOM_MEM_BLOAT_LOG\n"); return NS_ERROR_FAILURE; } if (out == nsnull) { @@ -485,7 +487,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, FILE* out) nsVoidArray entries; PL_HashTableEnumerateEntries(gBloatView, BloatEntry::DumpEntry, &entries); - printf("nsTraceRefcnt::DumpStatistics: %d entries\n", entries.Count()); + fprintf(stdout, "nsTraceRefcnt::DumpStatistics: %d entries\n", + entries.Count()); // Sort the entries alphabetically by classname. PRInt32 i, j; diff --git a/xpcom/base/nsTraceRefcntImpl.cpp b/xpcom/base/nsTraceRefcntImpl.cpp index 5d3e423e350b..025de12d115c 100644 --- a/xpcom/base/nsTraceRefcntImpl.cpp +++ b/xpcom/base/nsTraceRefcntImpl.cpp @@ -450,6 +450,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, FILE* out) nsresult rv = NS_OK; #ifdef NS_BUILD_REFCNT_LOGGING if (gBloatLog == nsnull || gBloatView == nsnull) { + fprintf(stdout, "Must define environmental variable " \ + "XPCOM_MEM_BLOAT_LOG\n"); return NS_ERROR_FAILURE; } if (out == nsnull) { @@ -485,7 +487,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, FILE* out) nsVoidArray entries; PL_HashTableEnumerateEntries(gBloatView, BloatEntry::DumpEntry, &entries); - printf("nsTraceRefcnt::DumpStatistics: %d entries\n", entries.Count()); + fprintf(stdout, "nsTraceRefcnt::DumpStatistics: %d entries\n", + entries.Count()); // Sort the entries alphabetically by classname. PRInt32 i, j;