Changeset 1535 for trunk/src/win32k/misc/vprintf.c
- Timestamp:
- Nov 1, 1999, 12:57:09 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/misc/vprintf.c
r1467 r1535 1 /* $Id: vprintf.c,v 1. 2 1999-10-27 02:03:00bird Exp $1 /* $Id: vprintf.c,v 1.3 1999-10-31 23:57:07 bird Exp $ 2 2 * 3 3 * vprintf and printf … … 36 36 #include <builtin.h> 37 37 #include "options.h" 38 #include "Yield.h" 38 39 #endif 39 40 … … 215 216 { 216 217 #ifdef RING0 217 if ( options.fQuiet)218 if (!options.fLogging) 218 219 return 0; 219 220 #else … … 413 414 414 415 #ifdef RING0 415 if ( options.fQuiet)416 if (!options.fLogging) 416 417 return 0; 417 418 #endif … … 432 433 433 434 #ifdef RING0 434 if ( options.fQuiet)435 if (!options.fLogging) 435 436 return 0; 436 437 #endif … … 450 451 451 452 #ifdef RING0 452 if ( options.fQuiet)453 if (!options.fLogging) 453 454 return 0; 454 455 #endif … … 490 491 while (!(_inp(options.usCom + 5) & 0x20)); /* Waits for the port to be ready. */ 491 492 _outp(options.usCom, ch); /* Put the char. */ 493 Yield(); 492 494 #else 493 495 DosWrite(1, (void*)&ch, 1, &ulWrote); … … 507 509 static char *strout(char *psz, signed cchMax) 508 510 { 511 int cchYield = 0; 509 512 while (cchMax > 0 && *psz != '\0') 510 513 { … … 536 539 while (!(_inp(options.usCom + 5) & 0x20)); /* Waits for the port to be ready. */ 537 540 _outp(options.usCom, chNewLine); /* Put the char. */ 541 cchYield ++; 538 542 #else 539 543 DosWrite(1, (void*)&chReturn, 1, &ul); … … 550 554 psz += cch; 551 555 cchMax -= cch; 556 cchYield += cch; 557 if (cchYield > 3) 558 if (Yield()) 559 cchYield = 0; 552 560 } 553 561 return psz;
Note:
See TracChangeset
for help on using the changeset viewer.