Introduce a new helper function cper_mem_err_status_str() to decode the error status value into a human readable string. [ bp: Massage. ]
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -558,6 +558,7 @@ extern const char *const cper_proc_error_type_strs[4]; · 557 unmodified lines | |||
| 558 | u64 cper_next_record_id(void); | 558 | u64 cper_next_record_id(void); |
| 559 | const char *cper_severity_str(unsigned int); | 559 | const char *cper_severity_str(unsigned int); |
| 560 | const char *cper_mem_err_type_str(unsigned int); | 560 | const char *cper_mem_err_type_str(unsigned int); |
| 561 | const char *cper_mem_err_status_str(u64 status); | ||
| 561 | void cper_print_bits(const char *prefix, unsigned int bits, | 562 | void cper_print_bits(const char *prefix, unsigned int bits, |
| 562 | const char * const strs[], unsigned int strs_size); | 563 | const char * const strs[], unsigned int strs_size); |
| 563 | void cper_mem_err_pack(const struct cper_sec_mem_err *, | 564 | void cper_mem_err_pack(const struct cper_sec_mem_err *, |