Re: [PATCH v4 5/6] pstore/ram: Introduce max_reason and convert dump_oops
From: Pavel Tatashin <pasha.tatashin@soleen.com>
Date: 2020-05-15 19:40:54
Also in:
linux-devicetree, linux-doc, lkml
From: Pavel Tatashin <pasha.tatashin@soleen.com>
Date: 2020-05-15 19:40:54
Also in:
linux-devicetree, linux-doc, lkml
pdata.dump_oops = dump_oops;
+ /* If "max_reason" is set, its value has priority over "dump_oops". */ + if (ramoops_max_reason != -1) + pdata.max_reason = ramoops_max_reason;
(ramoops_max_reason >= 0) might make more sense here, we do not want negative max_reason even if it was provided by the user. Otherwise the series looks good. Thank you, Pasha