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