From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from atlmailgw2.ami.com (atlmailgw2.ami.com [63.147.10.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 738BC1A1E96 for ; Wed, 14 Sep 2016 12:26:57 -0700 (PDT) X-AuditID: ac10606f-09fff7000000793e-d4-57d9a4801437 Received: from atlms2.us.megatrends.com (atlms2.us.megatrends.com [172.16.96.152]) (using TLS with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 57.FA.31038.084A9D75; Wed, 14 Sep 2016 15:26:56 -0400 (EDT) Received: from ATLMS1.us.megatrends.com ([fe80::8c55:daf0:ef05:5605]) by atlms2.us.megatrends.com ([fe80::29dc:a91e:ea0c:cdeb%12]) with mapi id 14.03.0123.003; Wed, 14 Sep 2016 15:26:47 -0400 From: Felix Poludov To: "edk2-devel@lists.01.org" Thread-Topic: [PATCH] [MdePkg ] New Debug Message Levels Thread-Index: AdIOoGfwP58VzQt9RL+w0VhTGXv9FAAAR6uQAAb6ZRA= Date: Wed, 14 Sep 2016 19:26:47 +0000 Message-ID: <9333E191E0D52B4999CE63A99BA663A00270FEBD66@atlms1.us.megatrends.com> References: <9333E191E0D52B4999CE63A99BA663A00270FEBC69@atlms1.us.megatrends.com> In-Reply-To: <9333E191E0D52B4999CE63A99BA663A00270FEBC69@atlms1.us.megatrends.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.99.93] content-transfer-encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpileLIzCtJLcpLzFFi42JZI5AwQ7dhyc1wg7NrFSz2HDrK7MDo0T37 H0sAY1QDo01iXl5+SWJJqkJKanGyrVJAUWZZYnKlkkJmiq2SoZJCQU5icmpual6JrVJiQUFq XoqSHZcCBrABKsvMU0jNS85PycxLt1XyDPbXtbAwtdQ1VLILyUhVyMxLyy/KTSzJzM9TSM7P KwGqTk0BiiokdHFmbFm+jaVgolLFmyUHmRoYG6S7GDk5JARMJLZe+8LWxcjFISQwm0mibcMl JgjnMKPEjylPWECq2ARUJDadvcAMYosImEu0zr8CVMTBIQxkT/hnAxG2kHgx9T0LhG0l8fve Z7ByFgFViftLz7CD2LwCgRLz1zxhA7GFgOwZTxaA2ZwCQRKbfx9hArEZBcQkvp9aA2YzC4hL 3HoynwniUAGJJXvOM0PYohIvH/9jhbAVJLa872SHqNeRWLD7ExuErS2xbOFrZoi9ghInZz5h mcAoMgvJ2FlIWmYhaZmFpGUBI8sqRqHEkpzcxMyc9HIjvcTcTL3k/NxNjJAoz9/B+PGj+SFG AQ5GJR5eqTk3w4VYE8uKK3MPMUpwMCuJ8BrNBwrxpiRWVqUW5ccXleakFh9idAIGy0RmKW5Q FAHjPN7YwEBKFMYxNDEzMTcyN7Q0MTc2VhLnlf7rGy4kkA5MO9mpqQWpRTBDmDg4pRoYOezZ r3ktnfTw5oNsmU5H7j0qv4TUA1zvNkbV/17EmFVkdHDDpdu89ip6Nq5C63eavZadfPPjsU23 76x9uqpZTcLpwo3DvYV7Y5em/9xVzBl2/MVS1z12K3fs5VrwbTXbFXtlzZh/PhMkFhZmXHvw bVLDeg5mFr5tNqEvEv/fX/Zv2vuuvse7FimxFGckGmoxFxUnAgCk6hCtFQMAAA== Subject: Re: [PATCH] [MdePkg ] New Debug Message Levels X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2016 19:26:57 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Resending with the patch (the patch was missing in the original e-mail). -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Felix= Poludov Sent: Wednesday, September 14, 2016 12:05 PM To: edk2-devel@lists.01.org Subject: [edk2] [PATCH] [MdePkg ] New Debug Message Levels Dear MdePkg maintainer, DebugLib.h defines debug message levels. Some values such as DEBUG_ERROR and= DEBUG_INFO define messages category, whereas other values such as DEBUG_BLK= IO and DEBUG_VARIABLE define message domain. This patch adds definitions for several additional message domains. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Felix Polyudov > Thanks Felix =3D=3D diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/Debu= gLib.h index 803872c..47549b7 100644 --- a/MdePkg/Include/Library/DebugLib.h +++ b/MdePkg/Include/Library/DebugLib.h @@ -54,6 +54,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. #define DEBUG_CACHE 0x00200000 // Memory range cachability changes #define DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may // significantly impact boot performanc= e +#define DEBUG_USB 0x00000200 // USB Driver +#define DEBUG_PCI 0x00000800 // PCI Bus Driver +#define DEBUG_CSM 0x00002000 // Compatibility Support Module +#define DEBUG_CPU 0x00008000 // Processor Driver +#define DEBUG_CHIPSET 0x00040000 // Chipset/SoC Drivers +#define DEBUG_PLATFORM 0x00800000 // Platform/Board Drivers #define DEBUG_ERROR 0x80000000 // Error // @@ -75,6 +81,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. #define EFI_D_LOADFILE DEBUG_LOADFILE #define EFI_D_EVENT DEBUG_EVENT #define EFI_D_VERBOSE DEBUG_VERBOSE +#define EFI_D_USB DEBUG_USB +#define EFI_D_PCI DEBUG_PCI +#define EFI_D_CSM DEBUG_CSM +#define EFI_D_CPU DEBUG_CPU +#define EFI_D_CHIPSET DEBUG_CHIPSET +#define EFI_D_PLATFORM DEBUG_PLATFORM #define EFI_D_ERROR DEBUG_ERROR /** diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 606e2f1..eaae076 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -1883,15 +1883,21 @@ # BIT6 - Information message.
# BIT7 - Dispatcher message.
# BIT8 - Variable message.
+ # BIT9 - USB Driver message.
# BIT10 - Boot Manager message.
+ # BIT11 - PCI Bus Driver message.
# BIT12 - BlockIo Driver message.
+ # BIT13 - Compatibility Support Module message.
# BIT14 - Network Driver message.
+ # BIT15 - Processor Driver message.
# BIT16 - UNDI Driver message.
# BIT17 - LoadFile message.
+ # BIT18 - Chipset/SoC Driver message.
# BIT19 - Event message.
# BIT20 - Global Coherency Database changes message.
# BIT21 - Memory range cachability changes message.
# BIT22 - Detailed debug message.
+ # BIT23 - Platform/Board Driver message.
# BIT31 - Error message.
# @Prompt Fixed Debug Message Print Level. gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel|0xFFFFFFFF|UINT32|0= x30001016 @@ -1951,15 +1957,21 @@ # BIT6 - Information message.
# BIT7 - Dispatcher message.
# BIT8 - Variable message.
+ # BIT9 - USB Driver message.
# BIT10 - Boot Manager message.
+ # BIT11 - PCI Bus Driver message.
# BIT12 - BlockIo Driver message.
+ # BIT13 - Compatibility Support Module message.
# BIT14 - Network Driver message.
+ # BIT15 - Processor Driver message.
# BIT16 - UNDI Driver message.
# BIT17 - LoadFile message.
+ # BIT18 - Chipset/SoC Driver message.
# BIT19 - Event message.
# BIT20 - Global Coherency Database changes message.
# BIT21 - Memory range cachability changes message.
# BIT22 - Detailed debug message.
+ # BIT23 - Platform/Board Driver message.
# BIT31 - Error message.
# @Prompt Debug Message Print Level. # @Expression 0x80000002 | (gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorL= evel & 0x7F84AA00) =3D=3D 0 Please consider the environment before printing this email. The information contained in this message may be confidential and proprietar= y to American Megatrends, Inc. This communication is intended to be read on= ly by the individual or entity to whom it is addressed or by their designee.= If the reader of this message is not the intended recipient, you are on not= ice that any distribution of this message, in any form, is strictly prohibit= ed. Please promptly notify the sender by reply e-mail or by telephone at 77= 0-246-8600, and then delete or destroy all copies of the transmission.