]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: use separate string array for error status
authorThomas Tai <thomas.tai@oracle.com>
Mon, 14 May 2018 14:33:48 +0000 (10:33 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 14 Aug 2018 15:45:57 +0000 (12:45 -0300)
commit0b6b6c5762f385b0d024355b926843519ca7b7cc
tree03cf8aef3ac177b00858e19cc779327738e8fe46
parent0a16789f4557d3423138bae9a7c822786fb5cc7d
rasdaemon: use separate string array for error status

The bit field description for correctable status register
and uncorrectable status register are different. Using a
single aer_errors string array will cause bit[12] to
overlap and thus recording the wrong description.
Using a separate variable to switch between correctable
and uncorrectable error is needed.

Signed-off-by: Thomas Tai <thomas.tai@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
ras-aer-handler.c