Ignore:
Timestamp:
Jul 12, 2012, 5:02:50 PM (13 years ago)
Author:
dmik
Message:

kernel32: Improve logging (showing current FS mode).

File:
1 edited

Legend:

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

    r21979 r22005  
    457457                        " /--------------------- Thread ID\n"
    458458                        " |   /----------------- Call Depth\n"
    459                         " |   |  /-------------- Flags (O = OS/2 mode (FS=150B))\n"
     459                        " |   |  /-------------- Flags (O: OS/2 FS (150B), W: Win32 FS, o/w: no switch)\n"
    460460                        " |   |  |      /------- Current Time\n"
    461461                        "--- --- - ------------\n");
     
    465465                        " /------------ Thread ID\n"
    466466                        " |   /-------- Call Depth\n"
    467                         " |   |  /----- Flags (O = OS/2 mode (FS=150B))\n"
     467                        " |   |  /----- Flags (O: OS/2 FS (150B), W: Win32 FS, o/w: no switch)\n"
    468468                        " |   |  |  /-- FPU Control Register\n"
    469469                        "--- --- - ---\n");
     
    472472                        " /-------- Thread ID\n"
    473473                        " |   /---- Call Depth\n"
    474                         " |   |  /- Flags (O = OS/2 mode (FS=150B))\n"
     474                        " |   |  /- Flags (O: OS/2 FS (150B), W: Win32 FS, o/w: no switch)\n"
    475475                        "--- --- -\n");
    476476#endif
     
    500500                        LOWORD(teb->o.odin.threadId),
    501501                        ulCallDepth,
    502                         (sel == 0x150b && fSwitchTIBSel) ? 'O' : '-',
     502                        fSwitchTIBSel ? (sel == 0x150b ? 'O' : 'W') :
     503                                        (sel == 0x150b ? 'o' : 'w'),
    503504                        h, m, s, ms);
    504505#else
     
    508509                        LOWORD(teb->o.odin.threadId),
    509510                        ulCallDepth,
    510                         (sel == 0x150b && fSwitchTIBSel) ? 'O' : '-',
     511                        fSwitchTIBSel ? (sel == 0x150b ? 'O' : 'W') :
     512                                        (sel == 0x150b ? 'o' : 'w'),
    511513                        CONTROL87(0,0));
    512514#else
     
    515517                        LOWORD(teb->o.odin.threadId),
    516518                        ulCallDepth,
    517                         (sel == 0x150b && fSwitchTIBSel) ? 'O' : '-');
     519                        fSwitchTIBSel ? (sel == 0x150b ? 'O' : 'W') :
     520                                        (sel == 0x150b ? 'o' : 'w'));
    518521#endif
    519522#endif
     
    523526#ifdef LOG_TIME
    524527                fprintf(flog,
    525                         "t-- --- O %02d:%02d:%02d.%03d: ",
     528                        "t-- --- - %02d:%02d:%02d.%03d: ",
    526529                        h, m, s, ms);
    527530#else
    528531#ifdef SHOW_FPU_CONTROLREG
    529532                fprintf(flog,
    530                         "t-- --- O ---: ");
     533                        "t-- --- - ---: ");
    531534#else
    532535                fprintf(flog,
    533                         "t-- --- O: ");
     536                        "t-- --- -: ");
    534537#endif
    535538#endif
     
    559562                        ulCallDepth,
    560563                        h, m, s, ms,
    561                         (sel == 0x150b && fSwitchTIBSel) ? 'O' : '.');
     564                        fSwitchTIBSel ? (sel == 0x150b ? 'O' : 'W') :
     565                                        (sel == 0x150b ? 'o' : 'w'));
    562566#else
    563567                sprintf(logbuffer,
     
    565569                        LOWORD(teb->o.odin.threadId),
    566570                        ulCallDepth,
    567                         (sel == 0x150b && fSwitchTIBSel) ? 'O' : '.');
     571                        fSwitchTIBSel ? (sel == 0x150b ? 'O' : 'W') :
     572                                        (sel == 0x150b ? 'o' : 'w'));
    568573#endif
    569574                prefixlen = strlen(logbuffer);
Note: See TracChangeset for help on using the changeset viewer.