* Borislav Petkov <bp@xxxxxxxxx> wrote: > + for (i = 0; i <= ARRAY_SIZE(s5_reset_reason_txt); i++) { > + if (!(value & BIT(i))) > continue; > > - nr_reasons++; > - pr_info("x86/amd: Previous system reset reason [0x%08lx]: %s\n", > - value, s5_reset_reason_txt[bit]); > + if (s5_reset_reason_txt[i]) > + pr_info("x86/amd: Previous system reset reason [0x%08lx]: %s\n", > + value, s5_reset_reason_txt[i]); > } Yeah, this is much more straightforward code that gets us all the information - as diagnostics code should be. Thanks, Ingo