Ignore:
Timestamp:
Jan 25, 2000, 10:00:39 PM (26 years ago)
Author:
sandervl
Message:

Print thread id for each log message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/misc.cpp

    r2485 r2516  
    1 /* $Id: misc.cpp,v 1.18 2000-01-20 21:40:26 sandervl Exp $ */
     1/* $Id: misc.cpp,v 1.19 2000-01-25 21:00:39 sandervl Exp $ */
    22
    33/*
     
    278278
    279279    va_start(argptr, tekst);
    280     if(thdb) thdb->logfile = (DWORD)flog;
     280    if(thdb) {
     281        thdb->logfile = (DWORD)flog;
     282        fprintf(flog, "t%d: ", thdb->threadId);
     283    }
    281284    vfprintf(flog, tekst, argptr);
    282285    if(thdb) thdb->logfile = 0;
     
    313316
    314317    va_start(argptr, tekst);
    315     if(thdb) thdb->logfile = (DWORD)logfile;
     318    if(thdb) {
     319        thdb->logfile = (DWORD)flog;
     320        fprintf(flog, "t%d", thdb->threadId);
     321    }
    316322    vfprintf((FILE *)logfile, tekst, argptr);
    317323    if(thdb) thdb->logfile = 0;
Note: See TracChangeset for help on using the changeset viewer.