Changeset 1678 for trunk/src/win32k/misc/vprintf.c
- Timestamp:
- Nov 10, 1999, 2:45:38 AM (26 years ago)
- 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:59bird Exp $1 /* $Id: vprintf.c,v 1.5 1999-11-10 01:45:37 bird Exp $ 2 2 * 3 3 * vprintf and printf 4 4 * 5 5 * Copyright (c) 1999 knut st. osmundsen 6 * 7 * Project Odin Software License can be found in LICENSE.TXT 6 8 * 7 9 */ … … 22 24 #define NTSF_BLANK 0x0040 23 25 24 #define INCL_NOAPI 26 27 #ifdef RING0 28 #define INCL_NOAPI 29 #else 30 #define INCL_DOSPROCESS 31 #define INCL_DOSERRORS 32 #endif 25 33 26 34 /******************************************************************************* … … 205 213 206 214 207 #pragma info(notrd)208 215 /** 209 216 * Partial vprintf implementation. 217 * This function checks the fLogging flag, and will therefore only write if logging is enabled. 210 218 * @returns number of 211 * @param pszBuffer Output buffer.212 219 * @param pszFormat Format string. 213 220 * @param args Argument list. … … 215 222 int vprintf(const char *pszFormat, va_list args) 216 223 { 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 */ 237 int vprintf2(const char *pszFormat, va_list args) 238 { 239 #ifndef RING0 221 240 int cch = 0; 222 241 #endif … … 413 432 va_list arguments; 414 433 415 #ifdef RING0416 if (!options.fLogging)417 return 0;418 #endif419 420 434 va_start(arguments, pszFormat); 421 435 cch = vprintf(pszFormat, arguments); … … 432 446 va_list arguments; 433 447 434 #ifdef RING0435 if (!options.fLogging)436 return 0;437 #endif438 439 448 va_start(arguments, pszFormat); 440 449 cch = vprintf(pszFormat, arguments); … … 449 458 int cch; 450 459 va_list arguments; 451 452 #ifdef RING0453 if (!options.fLogging)454 return 0;455 #endif456 460 457 461 va_start(arguments, pszFormat);
Note:
See TracChangeset
for help on using the changeset viewer.