ReactOS 0.4.16-dev-258-g81860b4
uterror.c File Reference
#include "acpi.h"
#include "accommon.h"
#include "acnamesp.h"
Include dependency graph for uterror.c:

Go to the source code of this file.

Macros

#define _COMPONENT   ACPI_UTILITIES
 

Functions

void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedWarning (const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format,...)
 
void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedInfo (const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format,...)
 
void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedBiosError (const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format,...)
 
void AcpiUtPrefixedNamespaceError (const char *ModuleName, UINT32 LineNumber, ACPI_GENERIC_STATE *PrefixScope, const char *InternalPath, ACPI_STATUS LookupStatus)
 
void AcpiUtMethodError (const char *ModuleName, UINT32 LineNumber, const char *Message, ACPI_NAMESPACE_NODE *PrefixNode, const char *Path, ACPI_STATUS MethodStatus)
 

Macro Definition Documentation

◆ _COMPONENT

#define _COMPONENT   ACPI_UTILITIES

Definition at line 49 of file uterror.c.

Function Documentation

◆ AcpiUtMethodError()

void AcpiUtMethodError ( const char ModuleName,
UINT32  LineNumber,
const char Message,
ACPI_NAMESPACE_NODE PrefixNode,
const char Path,
ACPI_STATUS  MethodStatus 
)

Definition at line 369 of file uterror.c.

376{
378 ACPI_NAMESPACE_NODE *Node = PrefixNode;
379
380
383
384 if (Path)
385 {
386 Status = AcpiNsGetNode (PrefixNode, Path,
388 if (ACPI_FAILURE (Status))
389 {
390 AcpiOsPrintf ("[Could not get node by pathname]");
391 }
392 }
393
395 AcpiOsPrintf (" due to previous error (%s)",
396 AcpiFormatException (MethodStatus));
397
400}
PRTL_UNICODE_STRING_BUFFER Path
#define ACPI_FAILURE(a)
Definition: acexcep.h:95
ACPI_STATUS AcpiNsGetNode(ACPI_NAMESPACE_NODE *PrefixNode, const char *ExternalPathname, UINT32 Flags, ACPI_NAMESPACE_NODE **OutNode)
Definition: nsutils.c:863
#define ACPI_NS_NO_UPSEARCH
Definition: acnamesp.h:62
void AcpiNsPrintNodePathname(ACPI_NAMESPACE_NODE *Node, const char *Msg)
Definition: nsutils.c:75
void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf(const char *Format,...)
Definition: osl.c:851
UINT32 ACPI_STATUS
Definition: actypes.h:460
#define ACPI_MSG_ERROR
Definition: acutils.h:121
#define ACPI_MSG_REDIRECT_BEGIN
Definition: acutils.h:113
#define ACPI_MSG_SUFFIX
Definition: acutils.h:140
#define ACPI_MSG_REDIRECT_END
Definition: acutils.h:114
static const WCHAR Message[]
Definition: register.c:74
Status
Definition: gdiplustypes.h:25
Definition: dlist.c:348
const char * AcpiFormatException(ACPI_STATUS Status)
Definition: utexcep.c:70

◆ AcpiUtPredefinedBiosError()

void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedBiosError ( const char ModuleName,
UINT32  LineNumber,
char Pathname,
UINT16  NodeFlags,
const char Format,
  ... 
)

Definition at line 177 of file uterror.c.

184{
185 va_list ArgList;
186
187
188 /*
189 * Warning messages for this method/object will be disabled after the
190 * first time a validation fails or an object is successfully repaired.
191 */
192 if (NodeFlags & ANOBJ_EVALUATED)
193 {
194 return;
195 }
196
198
199 va_start (ArgList, Format);
200 AcpiOsVprintf (Format, ArgList);
202 va_end (ArgList);
203}
#define ANOBJ_EVALUATED
Definition: aclocal.h:220
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
void AcpiOsVprintf(const char *Format, va_list Args)
Definition: osl.c:865
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING Pathname
Definition: acpixf.h:704
#define ACPI_MSG_BIOS_ERROR
Definition: acutils.h:131

◆ AcpiUtPredefinedInfo()

void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedInfo ( const char ModuleName,
UINT32  LineNumber,
char Pathname,
UINT16  NodeFlags,
const char Format,
  ... 
)

Definition at line 128 of file uterror.c.

135{
136 va_list ArgList;
137
138
139 /*
140 * Warning messages for this method/object will be disabled after the
141 * first time a validation fails or an object is successfully repaired.
142 */
143 if (NodeFlags & ANOBJ_EVALUATED)
144 {
145 return;
146 }
147
149
150 va_start (ArgList, Format);
151 AcpiOsVprintf (Format, ArgList);
153 va_end (ArgList);
154}
#define ACPI_MSG_INFO
Definition: acutils.h:127

◆ AcpiUtPredefinedWarning()

void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedWarning ( const char ModuleName,
UINT32  LineNumber,
char Pathname,
UINT16  NodeFlags,
const char Format,
  ... 
)

Definition at line 79 of file uterror.c.

86{
87 va_list ArgList;
88
89
90 /*
91 * Warning messages for this method/object will be disabled after the
92 * first time a validation fails or an object is successfully repaired.
93 */
94 if (NodeFlags & ANOBJ_EVALUATED)
95 {
96 return;
97 }
98
100
101 va_start (ArgList, Format);
102 AcpiOsVprintf (Format, ArgList);
104 va_end (ArgList);
105}
#define ACPI_MSG_WARNING
Definition: acutils.h:124

◆ AcpiUtPrefixedNamespaceError()

void AcpiUtPrefixedNamespaceError ( const char ModuleName,
UINT32  LineNumber,
ACPI_GENERIC_STATE PrefixScope,
const char InternalPath,
ACPI_STATUS  LookupStatus 
)

Definition at line 227 of file uterror.c.

233{
234 char *FullPath;
235 const char *Message;
236
237
238 /*
239 * Main cases:
240 * 1) Object creation, object must not already exist
241 * 2) Object lookup, object must exist
242 */
243 switch (LookupStatus)
244 {
246
248 Message = "Failure creating named object";
249 break;
250
251 case AE_NOT_FOUND:
252
254 Message = "Could not resolve symbol";
255 break;
256
257 default:
258
260 Message = "Failure resolving symbol";
261 break;
262 }
263
264 /* Concatenate the prefix path and the internal path */
265
266 FullPath = AcpiNsBuildPrefixedPathname (PrefixScope, InternalPath);
267
268 AcpiOsPrintf ("%s [%s], %s", Message,
269 FullPath ? FullPath : "Could not get pathname",
270 AcpiFormatException (LookupStatus));
271
272 if (FullPath)
273 {
274 ACPI_FREE (FullPath);
275 }
276
278}
#define AE_ALREADY_EXISTS
Definition: acexcep.h:115
#define AE_NOT_FOUND
Definition: acexcep.h:113
char * AcpiNsBuildPrefixedPathname(ACPI_GENERIC_STATE *PrefixScope, const char *InternalPath)
Definition: nsnames.c:423
#define ACPI_FREE(a)
Definition: actypes.h:386
@ InternalPath
Definition: bl.h:284