From c76f173bb3e4f37486048f1df4cefa482efb0da4 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Thu, 10 Jun 2010 11:26:57 -0700 Subject: [PATCH] Bug 571059: Update debugging printfs to treat nsFrameState objects as 64-bit & fix build warnings. r=dbaron --- layout/generic/nsBlockFrame.cpp | 2 +- layout/generic/nsContainerFrame.cpp | 2 +- layout/generic/nsFrame.cpp | 4 ++-- layout/generic/nsImageFrame.cpp | 2 +- layout/generic/nsPlaceholderFrame.cpp | 2 +- layout/generic/nsTextFrameThebes.cpp | 4 ++-- layout/xul/base/src/nsPopupSetFrame.cpp | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/layout/generic/nsBlockFrame.cpp b/layout/generic/nsBlockFrame.cpp index 98a264f9c27..fbef9c754e7 100644 --- a/layout/generic/nsBlockFrame.cpp +++ b/layout/generic/nsBlockFrame.cpp @@ -398,7 +398,7 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const // Output the rect and state fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height); if (0 != mState) { - fprintf(out, " [state=%08x]", mState); + fprintf(out, " [state=%016llx]", mState); } nsBlockFrame* f = const_cast(this); if (f->HasOverflowRect()) { diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp index b4b3b2d32cd..f1b887c0d5e 100644 --- a/layout/generic/nsContainerFrame.cpp +++ b/layout/generic/nsContainerFrame.cpp @@ -1541,7 +1541,7 @@ nsContainerFrame::List(FILE* out, PRInt32 aIndent) const } fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height); if (0 != mState) { - fprintf(out, " [state=%08x]", mState); + fprintf(out, " [state=%016llx]", mState); } fprintf(out, " [content=%p]", static_cast(mContent)); nsContainerFrame* f = const_cast(this); diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index ed031fcd309..974a3c3746d 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -4141,7 +4141,7 @@ nsFrame::List(FILE* out, PRInt32 aIndent) const } fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height); if (0 != mState) { - fprintf(out, " [state=%08x]", mState); + fprintf(out, " [state=%016llx]", mState); } nsIFrame* prevInFlow = GetPrevInFlow(); nsIFrame* nextInFlow = GetNextInFlow(); @@ -4357,7 +4357,7 @@ nsFrame::DumpRegressionData(nsPresContext* aPresContext, FILE* out, PRInt32 aInd GetFrameName(name); XMLQuote(name); fputs(NS_LossyConvertUTF16toASCII(name).get(), out); - fprintf(out, "\" state=\"%d\" parent=\"%ld\">\n", + fprintf(out, "\" state=\"%016llx\" parent=\"%ld\">\n", GetDebugStateBits(), PRUptrdiff(mParent)); aIndent++; diff --git a/layout/generic/nsImageFrame.cpp b/layout/generic/nsImageFrame.cpp index c8b31d65a8a..07e6c7581e8 100644 --- a/layout/generic/nsImageFrame.cpp +++ b/layout/generic/nsImageFrame.cpp @@ -1592,7 +1592,7 @@ nsImageFrame::List(FILE* out, PRInt32 aIndent) const fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height); if (0 != mState) { - fprintf(out, " [state=%08x]", mState); + fprintf(out, " [state=%016llx]", mState); } fprintf(out, " [content=%p]", (void*)mContent); diff --git a/layout/generic/nsPlaceholderFrame.cpp b/layout/generic/nsPlaceholderFrame.cpp index 3acce209436..c5deb7f8415 100644 --- a/layout/generic/nsPlaceholderFrame.cpp +++ b/layout/generic/nsPlaceholderFrame.cpp @@ -240,7 +240,7 @@ nsPlaceholderFrame::List(FILE* out, PRInt32 aIndent) const } fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height); if (0 != mState) { - fprintf(out, " [state=%08x]", mState); + fprintf(out, " [state=%016llx]", mState); } nsIFrame* prevInFlow = GetPrevInFlow(); nsIFrame* nextInFlow = GetNextInFlow(); diff --git a/layout/generic/nsTextFrameThebes.cpp b/layout/generic/nsTextFrameThebes.cpp index 51e888fb46b..110131cce61 100644 --- a/layout/generic/nsTextFrameThebes.cpp +++ b/layout/generic/nsTextFrameThebes.cpp @@ -6936,9 +6936,9 @@ nsTextFrame::List(FILE* out, PRInt32 aIndent) const fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height); if (0 != mState) { if (mState & NS_FRAME_SELECTED_CONTENT) { - fprintf(out, " [state=%08x] SELECTED", mState); + fprintf(out, " [state=%016llx] SELECTED", mState); } else { - fprintf(out, " [state=%08x]", mState); + fprintf(out, " [state=%016llx]", mState); } } fprintf(out, " [content=%p]", static_cast(mContent)); diff --git a/layout/xul/base/src/nsPopupSetFrame.cpp b/layout/xul/base/src/nsPopupSetFrame.cpp index 783fdcfdaaf..47a1d1263ce 100644 --- a/layout/xul/base/src/nsPopupSetFrame.cpp +++ b/layout/xul/base/src/nsPopupSetFrame.cpp @@ -207,7 +207,7 @@ nsPopupSetFrame::List(FILE* out, PRInt32 aIndent) const } fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height); if (0 != mState) { - fprintf(out, " [state=%08x]", mState); + fprintf(out, " [state=%016llx]", mState); } fprintf(out, " [content=%p]", static_cast(mContent)); nsPopupSetFrame* f = const_cast(this);