diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-04-26 17:03:22 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-04-26 17:03:22 +0200 |
commit | ab497507c0e4df6282b9212c40cbc7acd5c55cdd (patch) | |
tree | d361a0ec2c31378b4d7dc5defea20ba7b2c593fe /drivers/acpi/utils.c | |
parent | 25d95763269135b995a10f7ff9662aae66094258 (diff) | |
parent | ebf1bef3612f6b49ad52c1312f41bd2161774bfc (diff) | |
download | linux-ab497507c0e4df6282b9212c40cbc7acd5c55cdd.tar.gz linux-ab497507c0e4df6282b9212c40cbc7acd5c55cdd.tar.bz2 linux-ab497507c0e4df6282b9212c40cbc7acd5c55cdd.zip |
Merge branch 'acpi-messages'
* acpi-messages:
hwmon: acpi_power_meter: Get rid of ACPICA message printing
IIO: acpi-als: Get rid of ACPICA message printing
ACPI: utils: Introduce acpi_evaluation_failure_warn()
ACPI: Drop unused ACPI_*_COMPONENT definitions and update documentation
ACPI: sysfs: Get rid of ACPICA message printing
Diffstat (limited to 'drivers/acpi/utils.c')
-rw-r--r-- | drivers/acpi/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index 682edd913b3b..f1aff4dab476 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c @@ -512,6 +512,20 @@ EXPORT_SYMBOL(__acpi_handle_debug); #endif /** + * acpi_evaluation_failure_warn - Log evaluation failure warning. + * @handle: Parent object handle. + * @name: Name of the object whose evaluation has failed. + * @status: Status value returned by the failing object evaluation. + */ +void acpi_evaluation_failure_warn(acpi_handle handle, const char *name, + acpi_status status) +{ + acpi_handle_warn(handle, "%s evaluation failed: %s\n", name, + acpi_format_exception(status)); +} +EXPORT_SYMBOL_GPL(acpi_evaluation_failure_warn); + +/** * acpi_has_method: Check whether @handle has a method named @name * @handle: ACPI device handle * @name: name of object or method |