krishnanadh / rpms / rasdaemon

Forked from rpms/rasdaemon a year ago
Clone

Blame SOURCES/9baae41e14b825b487c80a743a21bfdf6175bd19.patch

714f59
commit 9baae41e14b825b487c80a743a21bfdf6175bd19
714f59
Author: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
714f59
Date:   Tue Jun 11 15:01:38 2019 -0300
714f59
714f59
    ras-mce-handler: fix mcgstatus message print
714f59
    
714f59
    As warned by clang, the test there is wrong:
714f59
    
714f59
    ras-mce-handler.c:344:9: warning: address of array 'e->mcgstatus_msg' will always evaluate to 'true' [-Wpointer-bool-conversion]
714f59
            if (e->mcgstatus_msg)
714f59
            ~~  ~~~^~~~~~~~~~~~~
714f59
    
714f59
    Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
714f59
714f59
---
714f59
 ras-mce-handler.c |    2 +-
714f59
 1 file changed, 1 insertion(+), 1 deletion(-)
714f59
714f59
--- rasdaemon-0.4.1.orig/ras-mce-handler.c	2020-01-10 10:03:09.990876004 -0500
714f59
+++ rasdaemon-0.4.1/ras-mce-handler.c	2020-01-10 10:03:50.554469958 -0500
714f59
@@ -334,7 +334,7 @@ #if 0
714f59
 	if (e->status & MCI_STATUS_ADDRV)
714f59
 		trace_seq_printf(s, ", addr= %llx", (long long)e->addr);
714f59
 
714f59
-	if (e->mcgstatus_msg)
714f59
+	if (*e->mcgstatus_msg)
714f59
 		trace_seq_printf(s, ", %s", e->mcgstatus_msg);
714f59
 	else
714f59
 		trace_seq_printf(s, ", mcgstatus= %llx",