Message ID | 1661346073-730819-1-git-send-email-dmtrmonakhov@yandex-team.ru |
---|---|
State | Accepted |
Commit | 37096428962d125591144876db6ae037096e39ed |
Headers | show |
Series | ACPI: APEI: Add BERT error log footer | expand |
On Wed, Aug 24, 2022 at 3:02 PM Dmitry Monakhov <dmtrmonakhov@yandex-team.ru> wrote: > > 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> > > diff --git a/drivers/acpi/apei/bert.c b/drivers/acpi/apei/bert.c > index 45973aa6e06d..c23eb75866d0 100644 > --- a/drivers/acpi/apei/bert.c > +++ b/drivers/acpi/apei/bert.c > @@ -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) > -- Applied as 6.1 material with an ACK from Tony. Thanks!
diff --git a/drivers/acpi/apei/bert.c b/drivers/acpi/apei/bert.c index 45973aa6e06d..c23eb75866d0 100644 --- a/drivers/acpi/apei/bert.c +++ b/drivers/acpi/apei/bert.c @@ -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)
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>