2 Defines and prototypes for common EFI utility error and debug messages.
4 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _EFI_UTILITY_MSGS_H_
16 #define _EFI_UTILITY_MSGS_H_
18 #include <Common/UefiBaseTypes.h>
21 // Log message print Level
23 #define VERBOSE_LOG_LEVEL 15
24 #define WARNING_LOG_LEVEL 15
25 #define INFO_LOG_LEVEL 20
26 #define KEY_LOG_LEVEL 40
27 #define ERROR_LOG_LEVLE 50
30 // Status codes returned by EFI utility programs and functions
32 #define STATUS_SUCCESS 0
33 #define STATUS_WARNING 1
34 #define STATUS_ERROR 2
39 #define MAX_LINE_LEN 0x200
40 #define MAXIMUM_INPUT_FILE_NUM 10
46 // When we call Error() or Warning(), the module keeps track of the worst
47 // case reported. GetUtilityStatus() will get the worst-case results, which
48 // can be used as the return value from the app.
56 // If someone prints an error message and didn't specify a source file name,
57 // then we print the utility name instead. However they must tell us the
58 // utility name early on via this function.
104 CHAR8
*OffendingText
,
135 CHAR8
*SourceFileName
,
143 CHAR8
*OffendingText
,
152 CHAR8
*OffendingText
,
162 UINT32 NumWarningsPlusErrors
170 #endif // #ifndef _EFI_UTILITY_MSGS_H_