]> git.karo-electronics.de Git - karo-tx-linux.git/commit
EDAC: Handle empty msg strings when reporting errors
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 10 Sep 2012 16:36:09 +0000 (18:36 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Tue, 16 Oct 2012 14:15:38 +0000 (16:15 +0200)
commitb70fd57b2aaf7a3f251cdc09478d213afb6ccd09
tree090ea1bb022e8434aeec806d8449716383c1511c
parent0cefb606ad6b79fdbc59a14d4c78905bb118c12b
EDAC: Handle empty msg strings when reporting errors

A reported error could look like this

[  226.178315] EDAC MC0: 1 CE  on mc#0csrow#0channel#0 (csrow:0 channel:0 page:0x427c0d offset:0xde0 grain:0 syndrome:0x1c6)

with two spaces back-to-back due to the msg argument of
edac_mc_handle_error being passed on empty by the specific drivers.
Handle that.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/edac_mc.c