2 Defines and prototypes for common EFI utility error and debug messages.
4 Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _EFI_UTILITY_MSGS_H_
10 #define _EFI_UTILITY_MSGS_H_
12 #include <Common/UefiBaseTypes.h>
15 // Log message print Level
17 #define VERBOSE_LOG_LEVEL 15
18 #define WARNING_LOG_LEVEL 15
19 #define INFO_LOG_LEVEL 20
20 #define KEY_LOG_LEVEL 40
21 #define ERROR_LOG_LEVLE 50
24 // Status codes returned by EFI utility programs and functions
26 #define STATUS_SUCCESS 0
27 #define STATUS_WARNING 1
28 #define STATUS_ERROR 2
33 #define MAX_LINE_LEN 0x200
34 #define MAXIMUM_INPUT_FILE_NUM 10
40 // When we call Error() or Warning(), the module keeps track of the worst
41 // case reported. GetUtilityStatus() will get the worst-case results, which
42 // can be used as the return value from the app.
50 // If someone prints an error message and didn't specify a source file name,
51 // then we print the utility name instead. However they must tell us the
52 // utility name early on via this function.
129 CHAR8
*SourceFileName
,
137 CHAR8
*OffendingText
,
146 CHAR8
*OffendingText
,
156 UINT32 NumWarningsPlusErrors
164 #endif // #ifndef _EFI_UTILITY_MSGS_H_