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:Jay Lu <jaylu102@amd.com> Co-developed-by:
Ben Cheatham <benjamin.cheatham@amd.com> Signed-off-by:
Ben Cheatham <benjamin.cheatham@amd.com> Reviewed-by:
Tony Luck <tony.luck@intel.com> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Wen Jin <wen.jin@intel.com>
Loading
Please sign in to comment