3 Copyright (c) 2004, 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.
23 #include <UefiBaseTypes.h>
25 #ifndef _EFI_UTILITY_MSGS_H_
26 #define _EFI_UTILITY_MSGS_H_
29 // Status codes returned by EFI utility programs and functions
31 #define STATUS_SUCCESS 0
32 #define STATUS_WARNING 1
33 #define STATUS_ERROR 2
42 // When we call Error() or Warning(), the module keeps track of the worst
43 // case reported. GetUtilityStatus() will get the worst-case results, which
44 // can be used as the return value from the app.
52 // If someone prints an error message and didn't specify a source file name,
53 // then we print the utility name instead. However they must tell us the
54 // utility name early on via this function.
103 CHAR8
*SourceFileName
,
111 CHAR8
*OffendingText
,
120 CHAR8
*OffendingText
,
130 UINT32 NumWarningsPlusErrors
138 #endif // #ifndef _EFI_UTILITY_MSGS_H_