Ignore:
Timestamp:
Nov 10, 1999, 2:45:38 AM (26 years ago)
Author:
bird
Message:

Some bugsfixes - Yield is disabled.
Added parameters.
Correcte moduleheaders.
Introduced a new base class for virtual lx modules + some elf sketches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/misc/vprintf.c

    r1536 r1678  
    1 /* $Id: vprintf.c,v 1.4 1999-11-01 09:28:59 bird Exp $
     1/* $Id: vprintf.c,v 1.5 1999-11-10 01:45:37 bird Exp $
    22 *
    33 * vprintf and printf
    44 *
    55 * Copyright (c) 1999 knut st. osmundsen
     6 *
     7 * Project Odin Software License can be found in LICENSE.TXT
    68 *
    79 */
     
    2224#define NTSF_BLANK      0x0040
    2325
    24 #define INCL_NOAPI
     26
     27#ifdef RING0
     28    #define INCL_NOAPI
     29#else
     30    #define INCL_DOSPROCESS
     31    #define INCL_DOSERRORS
     32#endif
    2533
    2634/*******************************************************************************
     
    205213
    206214
    207 #pragma info(notrd)
    208215/**
    209216 * Partial vprintf implementation.
     217 * This function checks the fLogging flag, and will therefore only write if logging is enabled.
    210218 * @returns   number of
    211  * @param     pszBuffer   Output buffer.
    212219 * @param     pszFormat   Format string.
    213220 * @param     args        Argument list.
     
    215222int vprintf(const char *pszFormat, va_list args)
    216223{
    217     #ifdef RING0
    218         if (!options.fLogging)
    219             return 0;
    220     #else
     224    if (!options.fLogging)
     225        return 0;
     226    return vprintf2(pszFormat, args);
     227}
     228
     229#pragma info(notrd)
     230/**
     231 * Partial vprintf implementation.
     232 * This function don't check the fLogging flag, and will therefore allways write.
     233 * @returns   number of
     234 * @param     pszFormat   Format string.
     235 * @param     args        Argument list.
     236 */
     237int vprintf2(const char *pszFormat, va_list args)
     238{
     239    #ifndef RING0
    221240        int cch = 0;
    222241    #endif
     
    413432    va_list arguments;
    414433
    415     #ifdef RING0
    416         if (!options.fLogging)
    417             return 0;
    418     #endif
    419 
    420434    va_start(arguments, pszFormat);
    421435    cch = vprintf(pszFormat, arguments);
     
    432446    va_list arguments;
    433447
    434     #ifdef RING0
    435         if (!options.fLogging)
    436             return 0;
    437     #endif
    438 
    439448    va_start(arguments, pszFormat);
    440449    cch = vprintf(pszFormat, arguments);
     
    449458    int     cch;
    450459    va_list arguments;
    451 
    452     #ifdef RING0
    453         if (!options.fLogging)
    454             return 0;
    455     #endif
    456460
    457461    va_start(arguments, pszFormat);
Note: See TracChangeset for help on using the changeset viewer.