Skip to content

Commit

Permalink
ras-events: make returned error code consistent
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
mchehab committed Jul 19, 2024
1 parent 7fd66c1 commit 81c7490
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 51 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ indent_size = 2
[*.py,ras-mc-ctl.in]
indent_style = space
indent_size = 4

Loading

0 comments on commit 81c7490

Please sign in to comment.