rasdaemon icon indicating copy to clipboard operation
rasdaemon copied to clipboard

[PATCH] rasdaemon: don't emit error syslog when exiting normally

Open colona opened this issue 9 months ago • 0 comments

Creating this issue for tracking purpose as advised in the README. I submitted a patch to linux-edac@ and Mauro a few weeks ago: https://lore.kernel.org/linux-edac/20240419212151.GA98667@visor/T/

Date: Fri, 19 Apr 2024 14:21:51 -0700
Message-ID: <20240419212151.GA98667@visor>
Subject: [PATCH] rasdaemon: don't emit error syslog when exiting normally

Tidy up read_ras_event_all_cpus exit path so that it returns 0 when
exiting normally after receiving a signal. It would return -1 and make
the caller emit "Huh! something got wrong. Aborting." in this case.

Also add missing error message for ras_mc_event_opendb and fix the
grammar a bit in the message above.

Fixes: a7b6a0464fba ("rasdaemon: add signal handling for the cleanup")
Signed-off-by: Ivan Delalande <[email protected]>

Thanks!

colona avatar May 14 '24 18:05 colona