Closed Bug 766341 Opened 13 years ago Closed 13 years ago

Fix debug warnings in nsDocShell.cpp

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: dzbarsky, Assigned: dzbarsky)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
No description provided.
Attachment #634608 - Flags: review?(bugs)
Comment on attachment 634608 [details] [diff] [review] Patch >From: David Zbarsky <dzbarsky@gmail.com> > >diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp >--- a/docshell/base/nsDocShell.cpp >+++ b/docshell/base/nsDocShell.cpp >@@ -781,17 +781,17 @@ nsDocShell::nsDocShell(): > if (gDocShellLeakLog) > PR_LOG(gDocShellLeakLog, PR_LOG_DEBUG, ("DOCSHELL %p created\n", this)); > #endif > > #ifdef DEBUG > // We're counting the number of |nsDocShells| to help find leaks > ++gNumberOfDocShells; > if (!PR_GetEnv("MOZ_QUIET")) { >- printf("++DOCSHELL %p == %ld [id = %ld]\n", (void*) this, >+ printf("++DOCSHELL %p == %ld [id = %llu]\n", (void*) this, > gNumberOfDocShells, mHistoryID); > } > #endif > } > > nsDocShell::~nsDocShell() > { > Destroy(); >@@ -810,17 +810,17 @@ nsDocShell::~nsDocShell() > if (gDocShellLeakLog) > PR_LOG(gDocShellLeakLog, PR_LOG_DEBUG, ("DOCSHELL %p destroyed\n", this)); > #endif > > #ifdef DEBUG > // We're counting the number of |nsDocShells| to help find leaks > --gNumberOfDocShells; > if (!PR_GetEnv("MOZ_QUIET")) { >- printf("--DOCSHELL %p == %ld [id = %ld]\n", (void*) this, >+ printf("--DOCSHELL %p == %ld [id = %llu]\n", (void*) this, > gNumberOfDocShells, mHistoryID); > } > #endif > > if (mInPrivateBrowsing) { > DecreasePrivateDocShellCount(); > } > }
Attachment #634608 - Flags: review?(bugs) → review+
Status: NEW → ASSIGNED
Flags: in-testsuite-
Target Milestone: --- → mozilla16
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: