source: trunk/src/win32k/include/log.h@ 847

Last change on this file since 847 was 847, checked in by bird, 26 years ago

Initial checkin of Win32k. (not tested & pe2lx not up-to-date!)

File size: 953 bytes
Line 
1/* $Id: log.h,v 1.1 1999-09-06 02:19:58 bird Exp $
2 * log - C-style logging - kprintf.
3 *
4 * Copyright (c) 1998-1999 knut st. osmundsen
5 *
6 */
7
8#ifndef _log_h_
9#define _log_h_
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#define OUTPUT_COM1 0x3f8
16#define OUTPUT_COM2 0x2f8
17
18#ifndef RELEASE
19 #ifndef RING0_DEBUG_IN_RING3
20 void _kprintf(const char *, ...);
21 #define kprintf(a) _kprintf a
22 #define kernel_printf(a) kprintf a; _kprintf("\n")
23 #else
24 #include <stdio.h>
25 #define kprintf(a) printf a; flushall()
26 #define kernel_printf(a) printf a; printf("\n"); flushall()
27 #endif
28#else
29 #ifndef RING0_DEBUG_IN_RING3
30 #define kprintf(a) Yield()
31 #define kernel_printf(a) Yield()
32 #else
33 #include <stdio.h>
34 #define kprintf(a) (void)0
35 #define kernel_printf(a) (void)0
36 #endif
37#endif
38
39#ifdef __cplusplus
40}
41#endif
42#endif
43
Note: See TracBrowser for help on using the repository browser.