]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: ras-memory-failure-handler: handle localtime() failure correctly
authorAristeu Rozanski <arozansk@redhat.com>
Thu, 19 Jan 2023 13:45:57 +0000 (08:45 -0500)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 21 Jan 2023 06:27:38 +0000 (07:27 +0100)
commitce33041e0abfa20054ff5d6874ffbd1ab592558d
treea9f2d2a055f657459f0aacba449411efd8176d44
parente8b97ec14a11764fedfea50bd4d96ddda43c7fc1
rasdaemon: ras-memory-failure-handler: handle localtime() failure correctly

We could just have an empty string but keeping the format could prevent
issues if someone is actually parsing this.
Found with covscan.

v2: fixed the timestamp as pointed by Robert Elliott

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
ras-memory-failure-handler.c