]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
ras-events: make returned error code consistent
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 19 Jul 2024 06:24:25 +0000 (08:24 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 19 Jul 2024 07:20:16 +0000 (09:20 +0200)
commit81c74900ed0564b38d653a96cf03d72f0dde39dd
tree00d07a3bc2bfa186255e06ab2a38a0b8e17833f6
parent7fd66c12c3cabc1d76e52174e9cd6af3133ea213
ras-events: make returned error code consistent

- Rework the returned code logic to be more consistent;
  - error codes will be using negative values;
  - positive values indicate special return codes.
- Don't bloat the logs with lots of error messages due to
  unsupported traces;
- Ensure that the number of CPUs will probably retrieved or bail out;
- Don't bail if it can't setup a monotone clock: it is better
  to have a wrong timestamp than no log at all.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
.editorconfig
ras-events.c