From 9a8e70ce6cbd1ccea850ef6e6a1784e240a2d594 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 16 Jan 2012 05:45:48 +0000 Subject: Add new DEBUG_VERBOSE print error level. Signed-off-by: lgao4 Reviewed-by: hhtian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12933 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkCompatibilityPkg/Foundation/Include/EfiDebug.h | 8 ++++---- .../Library/EdkIIGlueLib/Include/Library/EdkIIGlueDebugLib.h | 7 +++++-- MdePkg/Include/Library/DebugLib.h | 6 ++++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/EdkCompatibilityPkg/Foundation/Include/EfiDebug.h b/EdkCompatibilityPkg/Foundation/Include/EfiDebug.h index a1a1637e9a..3e67b93dde 100644 --- a/EdkCompatibilityPkg/Foundation/Include/EfiDebug.h +++ b/EdkCompatibilityPkg/Foundation/Include/EfiDebug.h @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2004, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -146,7 +146,7 @@ Abstract: #define EFI_D_FS 0x00000008 // EFI File system #define EFI_D_POOL 0x00000010 // Alloc & Free's #define EFI_D_PAGE 0x00000020 // Alloc & Free's -#define EFI_D_INFO 0x00000040 // Verbose +#define EFI_D_INFO 0x00000040 // Informational debug messages #define EFI_D_VARIABLE 0x00000100 // Variable #define EFI_D_BM 0x00000400 // Boot Manager (BDS) #define EFI_D_BLKIO 0x00001000 // BlkIo Driver @@ -154,11 +154,11 @@ Abstract: #define EFI_D_UNDI 0x00010000 // UNDI Driver #define EFI_D_LOADFILE 0x00020000 // UNDI Driver #define EFI_D_EVENT 0x00080000 // Event messages - +#define EFI_D_VERBOSE 0x00400000 // Detailed debug messages that may significantly impact boot performance #define EFI_D_ERROR 0x80000000 // Error #define EFI_D_GENERIC (EFI_D_ERROR | EFI_D_INIT | EFI_D_WARN | EFI_D_INFO | \ - EFI_D_BLKIO | EFI_D_NET | EFI_D_UNDI ) + EFI_D_BLKIO | EFI_D_NET | EFI_D_UNDI | EFI_D_VERBOSE) #define EFI_D_INTRINSIC ( EFI_D_EVENT | EFI_D_POOL | EFI_D_PAGE | \ EFI_D_BM | EFI_D_LOAD | EFI_D_VARIABLE ) diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDebugLib.h b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDebugLib.h index 27e597403e..3c42a05f17 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDebugLib.h +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDebugLib.h @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -47,6 +47,7 @@ Abstract: #undef EFI_D_UNDI #undef EFI_D_LOADFILE #undef EFI_D_EVENT +#undef EFI_D_VERBOSE #undef EFI_D_ERROR // @@ -68,7 +69,7 @@ Abstract: #define DEBUG_FS 0x00000008 // EFI File system #define DEBUG_POOL 0x00000010 // Alloc & Free's #define DEBUG_PAGE 0x00000020 // Alloc & Free's -#define DEBUG_INFO 0x00000040 // Verbose +#define DEBUG_INFO 0x00000040 // Informational debug messages #define DEBUG_VARIABLE 0x00000100 // Variable #define DEBUG_BM 0x00000400 // Boot Manager #define DEBUG_BLKIO 0x00001000 // BlkIo Driver @@ -76,6 +77,7 @@ Abstract: #define DEBUG_UNDI 0x00010000 // UNDI Driver #define DEBUG_LOADFILE 0x00020000 // UNDI Driver #define DEBUG_EVENT 0x00080000 // Event messages +#define DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may significantly impact boot performance #define DEBUG_ERROR 0x80000000 // Error // @@ -95,6 +97,7 @@ Abstract: #define EFI_D_UNDI DEBUG_UNDI #define EFI_D_LOADFILE DEBUG_LOADFILE #define EFI_D_EVENT DEBUG_EVENT +#define EFI_D_VERBOSE DEBUG_VERBOSE #define EFI_D_ERROR DEBUG_ERROR diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/DebugLib.h index 7bb964faa6..f969ce2317 100644 --- a/MdePkg/Include/Library/DebugLib.h +++ b/MdePkg/Include/Library/DebugLib.h @@ -8,7 +8,7 @@ of size reduction when compiler optimization is disabled. If MDEPKG_NDEBUG is defined, then debug and assert related macros wrapped by it are the NULL implementations. -Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at @@ -41,7 +41,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define DEBUG_FS 0x00000008 // EFI File system #define DEBUG_POOL 0x00000010 // Alloc & Free's #define DEBUG_PAGE 0x00000020 // Alloc & Free's -#define DEBUG_INFO 0x00000040 // Verbose +#define DEBUG_INFO 0x00000040 // Informational debug messages #define DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers #define DEBUG_VARIABLE 0x00000100 // Variable #define DEBUG_BM 0x00000400 // Boot Manager @@ -52,6 +52,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define DEBUG_EVENT 0x00080000 // Event messages #define DEBUG_GCD 0x00100000 // Global Coherency Database changes #define DEBUG_CACHE 0x00200000 // Memory range cachability changes +#define DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may significantly impact boot performance #define DEBUG_ERROR 0x80000000 // Error // @@ -72,6 +73,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define EFI_D_UNDI DEBUG_UNDI #define EFI_D_LOADFILE DEBUG_LOADFILE #define EFI_D_EVENT DEBUG_EVENT +#define EFI_D_VERBOSE DEBUG_VERBOSE #define EFI_D_ERROR DEBUG_ERROR /** -- cgit v1.2.3