Skip to content

Commit

Permalink
ACPI: APEI: Add BERT error log footer
Browse files Browse the repository at this point in the history
Print total number of records found during BERT log parsing.
This also simplify dmesg parser implementation for BERT events.

Signed-off-by: Dmitry Monakhov <dmtrmonakhov@yandex-team.ru>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Dmitry Monakhov authored and Rafael J. Wysocki committed Sep 3, 2022
1 parent b90cb10 commit 3709642
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/acpi/apei/bert.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ static void __init bert_print_all(struct acpi_bert_region *region,

if (skipped)
pr_info(HW_ERR "Skipped %d error records\n", skipped);

if (printed + skipped)
pr_info("Total records found: %d\n", printed + skipped);
}

static int __init setup_bert_disable(char *str)
Expand Down

0 comments on commit 3709642

Please sign in to comment.