diff options
| author | Robert Richter <[email protected]> | 2020-01-23 09:03:06 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2020-02-17 12:36:28 +0000 |
| commit | 1853ee72997645e1aea85e20b94f7dcc55636887 (patch) | |
| tree | a8dc08135014088ba45ad833524924e4c757ff6b /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | EDAC/mc: Pass the error descriptor to error reporting functions (diff) | |
| download | kernel-1853ee72997645e1aea85e20b94f7dcc55636887.tar.gz kernel-1853ee72997645e1aea85e20b94f7dcc55636887.zip | |
EDAC/mc: Remove detail[] string and cleanup error string generation
The error descriptor is passed to the error reporting functions, so
the error details can be directly generated there. Move string
generation from edac_raw_mc_handle_error() to edac_ce_error() and
edac_ue_error(). The intermediate detail[] string can be removed then.
Also, cleanup the string generation by switching to a single variant
only using the ternary operator.
[ bp: put ternary operators on a separate line for better readability
and use the short-form "inline if" in edac_mc_handle_error(). ]
Signed-off-by: Robert Richter <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Aristeu Rozanski <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
