Ignore:
Timestamp:
Oct 24, 2003, 5:08:11 PM (22 years ago)
Author:
sandervl
Message:

flexible debug logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/version/resource.c

    r10296 r10300  
    4444#include "wine/debug.h"
    4545#include <module.h>
     46
     47#define DBG_LOCALLOG    DBG_resource
     48#include "dbglocal.h"
    4649
    4750WINE_DEFAULT_DEBUG_CHANNEL(ver);
     
    192195    if ( !resTabSize )
    193196    {
    194         TRACE("No resources in NE dll\n" );
     197        dprintf(("No resources in NE dll\n" ));
    195198        return FALSE;
    196199    }
     
    234237        }
    235238    }
    236     TRACE("No typeid entry found for %p\n", typeid );
     239    dprintf(("No typeid entry found for %p\n", typeid ));
    237240    HeapFree( GetProcessHeap(), 0, resTab );
    238241    return FALSE;
     
    257260            if (nameInfo->id == id) goto found_name;
    258261    }
    259     TRACE("No resid entry found for %p\n", typeid );
     262    dprintf(("No resid entry found for %p\n", typeid ));
    260263    HeapFree( GetProcessHeap(), 0, resTab );
    261264    return FALSE;
     
    295298    if ( !resDataDir->Size )
    296299    {
    297         TRACE("No resources in PE dll\n" );
     300        dprintf(("No resources in PE dll\n" ));
    298301        return FALSE;
    299302    }
     
    327330    {
    328331        HeapFree( GetProcessHeap(), 0, sections );
    329         TRACE("Couldn't find resource section\n" );
     332        dprintf(("Couldn't find resource section\n" ));
    330333        return FALSE;
    331334    }
     
    350353    if ( !resPtr )
    351354    {
    352         TRACE("No typeid entry found for %p\n", typeid );
     355        dprintf(("No typeid entry found for %p\n", typeid ));
    353356        goto done;
    354357    }
     
    356359    if ( !resPtr )
    357360    {
    358         TRACE("No resid entry found for %p\n", resid );
     361        dprintf(("No resid entry found for %p\n", resid ));
    359362        goto done;
    360363    }
     
    362365    if ( !resPtr )
    363366    {
    364         TRACE("No default language entry found for %p\n", resid );
     367        dprintf(("No default language entry found for %p\n", resid ));
    365368        goto done;
    366369    }
     
    376379    if ( i == nSections )
    377380    {
    378         TRACE("Couldn't find resource data section\n" );
     381        dprintf(("Couldn't find resource data section\n" ));
    379382        goto done;
    380383    }
     
    404407    DWORD reslen;
    405408
    406     TRACE("(%s,type=0x%lx,id=0x%lx,off=%p)\n",
     409    dprintf(("(%s,type=0x%lx,id=0x%lx,off=%p)\n",
    407410                debugstr_a(lpszFileName), (LONG)lpszResType, (LONG)lpszResId,
    408                 lpszResId );
     411                lpszResId ));
    409412
    410413    lzfd = LZOpenFileA( (LPSTR)lpszFileName, &ofs, OF_READ );
     
    441444    DWORD reslen = dwResLen;
    442445
    443     TRACE("(%s,type=0x%lx,id=0x%lx,off=%ld,len=%ld,data=%p)\n",
     446    dprintf(("(%s,type=0x%lx,id=0x%lx,off=%ld,len=%ld,data=%p)\n",
    444447                debugstr_a(lpszFileName), (LONG)lpszResType, (LONG)lpszResId,
    445                 dwFileOffset, dwResLen, lpvData );
     448                dwFileOffset, dwResLen, lpvData ));
    446449
    447450    lzfd = LZOpenFileA( (LPSTR)lpszFileName, &ofs, OF_READ );
Note: See TracChangeset for help on using the changeset viewer.