]> 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>
Wed, 24 Oct 2012 14:55:26 +0000 (16:55 +0200)
commitfe536f0ee367e0c478fa601bdde836f5feecb1c0
tree493c6a7d3113ecd4e0df21427dc58c9992a52214
parent14e479bf926dee2b2dd9edede6380637e0d2f439
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