Changeset 21837 for branches/gcc-kmk/src/kernel32/dbglog.cpp
- Timestamp:
- Nov 30, 2011, 2:58:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/kernel32/dbglog.cpp
r21790 r21837 26 26 #include <string.h> 27 27 #include <stdarg.h> 28 #include <process.h> 28 29 #include <win32type.h> 29 30 #include <win32api.h> … … 332 333 #ifdef WIN32_IP_LOGGING 333 334 char *logserver = getenv("WIN32LOG_IPSERVER"); 334 if(logserver && loadNr == 0) {335 if(logserver) { 335 336 sock_init(); 336 337 … … 348 349 pszLogBase = "odin32_"; 349 350 350 sprintf(szLogFile, "%s%d.log", pszLogBase, loadNr);351 sprintf(szLogFile, "%s%d.log", pszLogBase, getpid()); 351 352 flog = fopen(szLogFile, "w"); 352 353 if(flog == NULL) 353 354 {//probably running exe on readonly device 354 sprintf(szLogFile, "%sodin32_%d.log", kernel32Path, loadNr);355 sprintf(szLogFile, "%sodin32_%d.log", kernel32Path, getpid()); 355 356 flog = fopen(szLogFile, "w"); 356 357 } … … 576 577 char logname[CCHMAXPATH]; 577 578 578 sprintf(logname, "odin32_%d.log", loadNr);579 sprintf(logname, "odin32_%d.log", getpid()); 579 580 flog = fopen(logname, "w"); 580 581 if(flog == NULL) {//probably running exe on readonly device 581 sprintf(logname, "%sodin32_%d.log", kernel32Path, loadNr);582 sprintf(logname, "%sodin32_%d.log", kernel32Path, getpid()); 582 583 flog = fopen(logname, "w"); 583 584 }
Note:
See TracChangeset
for help on using the changeset viewer.