From 1b490b42bf354b375388574d7587b1d835a4d577 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sun, 24 Sep 2000 03:05:11 +0000 Subject: [PATCH] Fixed format strings. --- dlls/comctl32/rebar.c | 2 +- dlls/comctl32/tooltips.c | 4 ++-- dlls/ole32/defaulthandler.c | 3 ++- graphics/win16drv/font.c | 3 +-- objects/font.c | 7 ++++--- windows/dialog.c | 3 ++- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index 07f3b6464d0..95be700e004 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -425,7 +425,7 @@ REBAR_ForceResize (HWND hwnd) REBAR_INFO *infoPtr = REBAR_GetInfoPtr (hwnd); RECT rc; - TRACE(" to [%d x %d]!\n", + TRACE( " to [%ld x %ld]!\n", infoPtr->calcSize.cx, infoPtr->calcSize.cy); infoPtr->bAutoResize = TRUE; diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c index 019ed82d28d..5cd9f25c407 100644 --- a/dlls/comctl32/tooltips.c +++ b/dlls/comctl32/tooltips.c @@ -314,7 +314,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr) TRACE("%s\n", debugstr_w(infoPtr->szTipText)); TOOLTIPS_CalcTipSize (hwnd, infoPtr, &size); - TRACE("size %d - %d\n", size.cx, size.cy); + TRACE("size %ld x %ld\n", size.cx, size.cy); if (toolPtr->uFlags & TTF_CENTERTIP) { RECT rc; @@ -437,7 +437,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr) TRACE("%s\n", debugstr_w(infoPtr->szTipText)); TOOLTIPS_CalcTipSize (hwnd, infoPtr, &size); - TRACE("size %d - %d\n", size.cx, size.cy); + TRACE("size %ld x %ld\n", size.cx, size.cy); if (toolPtr->uFlags & TTF_ABSOLUTE) { rect.left = infoPtr->xTrackPos; diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index 73b94e5d984..9a298787d9f 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -1060,7 +1060,8 @@ static HRESULT WINAPI DefaultHandler_SetExtent( DWORD dwDrawAspect, SIZEL* psizel) { - TRACE("(%p, %lx, (%d,%d))\n", iface, dwDrawAspect, psizel->cx, psizel->cy); + TRACE("(%p, %lx, (%ld x %ld))\n", iface, + dwDrawAspect, psizel->cx, psizel->cy); return OLE_E_NOTRUNNING; } diff --git a/graphics/win16drv/font.c b/graphics/win16drv/font.c index 4c9c0bca0e4..7bfa514c691 100644 --- a/graphics/win16drv/font.c +++ b/graphics/win16drv/font.c @@ -39,8 +39,7 @@ BOOL WIN16DRV_GetTextExtentPoint( DC *dc, LPCWSTR wstr, INT count, win16drv_SegPtr_TextXForm, NULL, NULL, 0); size->cx = XDSTOLS(dc,LOWORD(dwRet)); size->cy = YDSTOLS(dc,HIWORD(dwRet)); - TRACE("cx=0x%x, cy=0x%x\n", - size->cx, size->cy ); + TRACE("cx=%ld, cy=%ld\n", size->cx, size->cy ); HeapFree( GetProcessHeap(), 0, str ); return TRUE; } diff --git a/objects/font.c b/objects/font.c index d8eff58af17..b09ff24eaad 100644 --- a/objects/font.c +++ b/objects/font.c @@ -910,7 +910,7 @@ BOOL WINAPI GetTextExtentPoint32A( HDC hdc, LPCSTR str, INT count, } } GDI_ReleaseObj( hdc ); - TRACE("(%08x %s %d %p): returning %d,%d\n", + TRACE("(%08x %s %d %p): returning %ld x %ld\n", hdc, debugstr_an (str, count), count, size, size->cx, size->cy ); return ret; } @@ -939,7 +939,7 @@ BOOL WINAPI GetTextExtentPoint32W( ret = dc->funcs->pGetTextExtentPoint( dc, str, count, size ); GDI_ReleaseObj( hdc ); } - TRACE("(%08x %s %d %p): returning %d,%d\n", + TRACE("(%08x %s %d %p): returning %ld x %ld\n", hdc, debugstr_wn (str, count), count, size, size->cx, size->cy ); return ret; } @@ -1021,8 +1021,9 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count, *lpnFit = nFit; ret = TRUE; - TRACE("(%08x %s %d) returning %d %d %d\n", + TRACE("(%08x %s %d) returning %d %ld x %ld\n", hdc,debugstr_wn(str,count),maxExt,nFit, size->cx,size->cy); + done: GDI_ReleaseObj( hdc ); return ret; diff --git a/windows/dialog.c b/windows/dialog.c index 36b56130539..560e5818867 100644 --- a/windows/dialog.c +++ b/windows/dialog.c @@ -169,7 +169,8 @@ static BOOL DIALOG_GetCharSizeFromDC( HDC hDC, HFONT hFont, SIZE * pSize ) Success = TRUE; } /* Use the text metrics */ - TRACE("Using tm: %ldx%ld (dlg: %dx%d) (%s)\n", tm.tmAveCharWidth, tm.tmHeight, pSize->cx, pSize->cy, + TRACE("Using tm: %ldx%ld (dlg: %ld x %ld) (%s)\n", + tm.tmAveCharWidth, tm.tmHeight, pSize->cx, pSize->cy, tm.tmPitchAndFamily & TMPF_FIXED_PITCH ? "variable" : "fixed"); pSize->cx = tm.tmAveCharWidth; pSize->cy = tm.tmHeight;