diff options
author | jkim <jkim@FreeBSD.org> | 2009-11-16 18:28:41 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-11-16 18:28:41 +0000 |
commit | 33700bac1d344f0be40cccaba4df65da92a70fbf (patch) | |
tree | a94f496090c5bfd215b19df99d9e0f6ea0f6c293 /utilities/utmisc.c | |
parent | ab110240e055d6a52bfada74f67dcfe951464a0a (diff) | |
download | FreeBSD-src-33700bac1d344f0be40cccaba4df65da92a70fbf.zip FreeBSD-src-33700bac1d344f0be40cccaba4df65da92a70fbf.tar.gz |
Import ACPICA 20091112.
Diffstat (limited to 'utilities/utmisc.c')
-rw-r--r-- | utilities/utmisc.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/utilities/utmisc.c b/utilities/utmisc.c index 89e1add..bc27cd5 100644 --- a/utilities/utmisc.c +++ b/utilities/utmisc.c @@ -1435,3 +1435,51 @@ AcpiUtPredefinedWarning ( ACPI_COMMON_MSG_SUFFIX; va_end (args); } + +/******************************************************************************* + * + * FUNCTION: AcpiUtPredefinedInfo + * + * PARAMETERS: ModuleName - Caller's module name (for error output) + * LineNumber - Caller's line number (for error output) + * Pathname - Full pathname to the node + * NodeFlags - From Namespace node for the method/object + * Format - Printf format string + additional args + * + * RETURN: None + * + * DESCRIPTION: Info messages for the predefined validation module. Messages + * are only emitted the first time a problem with a particular + * method/object is detected. This prevents a flood of + * messages for methods that are repeatedly evaluated. + * + ******************************************************************************/ + +void ACPI_INTERNAL_VAR_XFACE +AcpiUtPredefinedInfo ( + const char *ModuleName, + UINT32 LineNumber, + char *Pathname, + UINT8 NodeFlags, + const char *Format, + ...) +{ + va_list args; + + + /* + * Warning messages for this method/object will be disabled after the + * first time a validation fails or an object is successfully repaired. + */ + if (NodeFlags & ANOBJ_EVALUATED) + { + return; + } + + AcpiOsPrintf ("ACPI Info for %s: ", Pathname); + + va_start (args, Format); + AcpiOsVprintf (Format, args); + ACPI_COMMON_MSG_SUFFIX; + va_end (args); +} |