From ecd37da0a068f4399e3f1f4313dcc6b52b8988ff Mon Sep 17 00:00:00 2001 From: "mozilla@weilbacher.org" Date: Sat, 8 Sep 2007 07:50:09 -0700 Subject: [PATCH] [OS/2] Make debug output in gfxOS2Surface a bit more useful --- gfx/thebes/src/gfxOS2Surface.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/gfx/thebes/src/gfxOS2Surface.cpp b/gfx/thebes/src/gfxOS2Surface.cpp index 280da42a43e0..a5d8b551e09f 100644 --- a/gfx/thebes/src/gfxOS2Surface.cpp +++ b/gfx/thebes/src/gfxOS2Surface.cpp @@ -47,13 +47,14 @@ gfxOS2Surface::gfxOS2Surface(HPS aPS, const gfxIntSize& aSize) : mOwnsPS(PR_FALSE), mPS(aPS), mSize(aSize) { #ifdef DEBUG_thebes_2 - printf("gfxOS2Surface::gfxOS2Surface(HPS, ...)\n"); + printf("gfxOS2Surface[%#x]::gfxOS2Surface(HPS=%#x, ...)\n", + (unsigned int)this, (unsigned int)aPS); #endif cairo_surface_t *surf = cairo_os2_surface_create(mPS, mSize.width, mSize.height); #ifdef DEBUG_thebes_2 - printf(" type(%#x)=%d (own=%d, h/w=%d/%d)\n", (unsigned int)surf, - cairo_surface_get_type(surf), mOwnsPS, mSize.width, mSize.height); + printf(" type(%#x)=%d (own=%d, ID=%#x, h/w=%d/%d)\n", (unsigned int)surf, + cairo_surface_get_type(surf), mOwnsPS, (unsigned int)mPS, mSize.width, mSize.height); #endif // XXX for now uncomment the mark_dirty function, see bug 371505 //cairo_surface_mark_dirty(surf); @@ -63,7 +64,8 @@ gfxOS2Surface::gfxOS2Surface(HPS aPS, const gfxIntSize& aSize) gfxOS2Surface::gfxOS2Surface(HWND aWnd) { #ifdef DEBUG_thebes_2 - printf("gfxOS2Surface::gfxOS2Surface(HWND)\n"); + printf("gfxOS2Surface[%#x]::gfxOS2Surface(HWND=%#x)\n", + (unsigned int)this, (unsigned int)aWnd); #endif if (!mPS) { @@ -82,8 +84,8 @@ gfxOS2Surface::gfxOS2Surface(HWND aWnd) if (mSize.height == 0) mSize.height = 10; // cairo_os2_surface_create() return something sensible cairo_surface_t *surf = cairo_os2_surface_create(mPS, mSize.width, mSize.height); #ifdef DEBUG_thebes_2 - printf(" type(%#x)=%d (own=%d, h/w=%d/%d)\n", (unsigned int)surf, - cairo_surface_get_type(surf), mOwnsPS, mSize.width, mSize.height); + printf(" type(%#x)=%d (own=%d, ID=%#x, h/w=%d/%d)\n", (unsigned int)surf, + cairo_surface_get_type(surf), mOwnsPS, (unsigned int)mPS, mSize.width, mSize.height); #endif cairo_os2_surface_set_hwnd(surf, aWnd); // XXX is this needed here?? // XXX for now uncomment the mark_dirty function, see bug 371505 @@ -94,7 +96,7 @@ gfxOS2Surface::gfxOS2Surface(HWND aWnd) gfxOS2Surface::~gfxOS2Surface() { #ifdef DEBUG_thebes_2 - printf("gfxOS2Surface::~gfxOS2Surface()\n"); + printf("gfxOS2Surface[%#x]::~gfxOS2Surface()\n", (unsigned int)this); #endif if (mOwnsPS)