]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Public include file for the Debug Library\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation \r | |
5 | All rights reserved. This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __DEBUG_LIB_H__\r | |
16 | #define __DEBUG_LIB_H__\r | |
17 | \r | |
18 | //\r | |
19 | // Declare bits for PcdDebugPropertyMask\r | |
20 | //\r | |
21 | #define DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED 0x01\r | |
22 | #define DEBUG_PROPERTY_DEBUG_PRINT_ENABLED 0x02\r | |
23 | #define DEBUG_PROPERTY_DEBUG_CODE_ENABLED 0x04\r | |
24 | #define DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED 0x08\r | |
25 | #define DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED 0x10\r | |
26 | #define DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED 0x20\r | |
27 | \r | |
28 | //\r | |
29 | // Declare bits for PcdDebugPrintErrorLevel and the ErrorLevel parameter of DebugPrint()\r | |
30 | //\r | |
31 | #define EFI_D_INIT 0x00000001 // Initialization style messages\r | |
32 | #define EFI_D_WARN 0x00000002 // Warnings\r | |
33 | #define EFI_D_LOAD 0x00000004 // Load events\r | |
34 | #define EFI_D_FS 0x00000008 // EFI File system\r | |
35 | #define EFI_D_POOL 0x00000010 // Alloc & Free's\r | |
36 | #define EFI_D_PAGE 0x00000020 // Alloc & Free's\r | |
37 | #define EFI_D_INFO 0x00000040 // Verbose\r | |
38 | #define EFI_D_VARIABLE 0x00000100 // Variable\r | |
39 | #define EFI_D_BM 0x00000400 // Boot Manager (BDS)\r | |
40 | #define EFI_D_BLKIO 0x00001000 // BlkIo Driver\r | |
41 | #define EFI_D_NET 0x00004000 // SNI Driver\r | |
42 | #define EFI_D_UNDI 0x00010000 // UNDI Driver\r | |
43 | #define EFI_D_LOADFILE 0x00020000 // UNDI Driver\r | |
44 | #define EFI_D_EVENT 0x00080000 // Event messages\r | |
45 | #define EFI_D_ERROR 0x80000000 // Error\r | |
46 | \r | |
47 | /**\r | |
48 | \r | |
49 | Prints a debug message to the debug output device if the specified error level is enabled.\r | |
50 | \r | |
51 | If any bit in ErrorLevel is also set in PcdDebugPrintErrorLevel, then print \r | |
52 | the message specified by Format and the associated variable argument list to \r | |
53 | the debug output device.\r | |
54 | \r | |
55 | If Format is NULL, then ASSERT().\r | |
56 | \r | |
57 | @param ErrorLevel The error level of the debug message.\r | |
58 | @param Format Format string for the debug message to print.\r | |
59 | \r | |
60 | **/\r | |
61 | VOID\r | |
62 | EFIAPI\r | |
63 | DebugPrint (\r | |
64 | IN UINTN ErrorLevel,\r | |
65 | IN CONST CHAR8 *Format,\r | |
66 | ...\r | |
67 | );\r | |
68 | \r | |
69 | \r | |
70 | /**\r | |
71 | \r | |
72 | Prints an assert message containing a filename, line number, and description. \r | |
73 | This may be followed by a breakpoint or a dead loop.\r | |
74 | \r | |
75 |