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 <bp@alien8.de>
Wed, 28 Nov 2012 10:24:12 +0000 (11:24 +0100)
commitf430d5707aa47af8669bbc0083a79e7d780908b2
treec2fce05c7a3112f4ca7f600cdc3705b05de7ee04
parent4da1b7bfe7699881c761d71b5e299a65bce48ab2
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