| Last change
 on this file since 3453 was             2898, checked in by bird, 26 years ago | 
        
          | 
Symbol Database is implemented.No scanning of the os2krnl file, the loaded image is now scaned to determin
 which build, debug/retail and smp/uni.
 And yet some more enhanchments like 16-bit logging.
 
 | 
        
          | File size:
            960 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* $Id: log.h,v 1.4 2000-02-25 18:15:04 bird Exp $ | 
|---|
| 2 | * | 
|---|
| 3 | * log - C-style logging - kprintf. | 
|---|
| 4 | * Dual mode, RING0 and RING3. | 
|---|
| 5 | * Dual 16 and 32 bit. | 
|---|
| 6 | * | 
|---|
| 7 | * Define NOLOGGING to disable logging for the given sourcefile or the entire system. | 
|---|
| 8 | * | 
|---|
| 9 | * Copyright (c) 1998-2000 knut st. osmundsen | 
|---|
| 10 | * | 
|---|
| 11 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 12 | * | 
|---|
| 13 | */ | 
|---|
| 14 |  | 
|---|
| 15 | #ifndef _log_h_ | 
|---|
| 16 | #define _log_h_ | 
|---|
| 17 |  | 
|---|
| 18 | #ifdef __cplusplus | 
|---|
| 19 | extern "C" { | 
|---|
| 20 | #endif | 
|---|
| 21 |  | 
|---|
| 22 | /* | 
|---|
| 23 | * COM-Port port numbers. | 
|---|
| 24 | */ | 
|---|
| 25 | #define OUTPUT_COM1 0x3f8 | 
|---|
| 26 | #define OUTPUT_COM2 0x2f8 | 
|---|
| 27 |  | 
|---|
| 28 |  | 
|---|
| 29 | /* | 
|---|
| 30 | * output macros | 
|---|
| 31 | */ | 
|---|
| 32 | #define dprintf kprintf | 
|---|
| 33 | #if defined(DEBUG) && !defined(NOLOGGING) | 
|---|
| 34 | #ifndef INCL_16 | 
|---|
| 35 | /* 32-bit */ | 
|---|
| 36 | #include <stdarg.h> | 
|---|
| 37 | #include "vprintf.h" | 
|---|
| 38 | #define kprintf(a)          printf a | 
|---|
| 39 | #else | 
|---|
| 40 | /* 16-bit */ | 
|---|
| 41 | #include "vprntf16.h" | 
|---|
| 42 | #define kprintf(a)          printf16 a | 
|---|
| 43 | #endif | 
|---|
| 44 | #else | 
|---|
| 45 | #define kprintf(a)              (void)0 | 
|---|
| 46 | #endif | 
|---|
| 47 |  | 
|---|
| 48 | #ifdef __cplusplus | 
|---|
| 49 | } | 
|---|
| 50 | #endif | 
|---|
| 51 | #endif | 
|---|
| 52 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.