Commit fb6904ec authored by Jay Lu's avatar Jay Lu Committed by Wen Jin
Browse files

ACPI: APEI: EINJ: Refactor available_error_type_show()

mainline inclusion
from mainline-v6.2-rc1
commit 87386ee8
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8ZRE0
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=87386ee83dc2b241eab69239f9cc82fa7fb4171c



--------------------------------

Move error type descriptions into an array and loop over error types
to improve readability and maintainability.

Replace seq_printf() with seq_puts() as recommended by checkpatch.pl.

Intel-SIG: commit 87386ee8 ACPI: APEI: EINJ: Refactor available_error_type_show().
Improve error type descriptions readability and maintainability.
Modified origin commit codes to avoid violating C89 during compiling.

Signed-off-by: default avatarJay Lu <jaylu102@amd.com>
Co-developed-by: default avatarBen Cheatham <benjamin.cheatham@amd.com>
Signed-off-by: default avatarBen Cheatham <benjamin.cheatham@amd.com>
Reviewed-by: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarWen Jin <wen.jin@intel.com>
parent dbe9aa30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment