Changeset 3669 for trunk/src/lib


Ignore:
Timestamp:
Feb 22, 2025, 2:31:14 AM (5 months ago)
Author:
bird
Message:

kmk: More stdout close error debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/msc_buffered_printf.c

    r3661 r3669  
    123123     * Fallback.
    124124     */
     125# ifdef DEBUG_STDOUT_CLOSE_ISSUE
     126    extern void my_check_stdout(const char *pszWhere);
     127    if (pFile == stdout)
     128        my_check_stdout("__stdio_common_vfprintf/entry");
     129    int rcRet = g_pfnFallback_vfprintf(fOptions, pFile, pszFormat, hLocale, va);
     130    if (pFile == stdout)
     131        my_check_stdout("__stdio_common_vfprintf/exit");
     132    return rcRet;
     133# else
    125134    return g_pfnFallback_vfprintf(fOptions, pFile, pszFormat, hLocale, va);
     135# endif
    126136}
    127137
Note: See TracChangeset for help on using the changeset viewer.