Skip to contentSkip to conversation

rasdaemon: add support for non standard CPER section events

PATCH Superseded Tyler Baicar 1 participant 1 message Jun 8, 2017 EDAC-core

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 rasdaemon: add support for non standard CPER section events

Quoted 14 lines · Mauro Carvalho Chehab

Em Fri, 2 Jun 2017 15:40:32 -0600
Tyler Baicar <[email protected]> escreveu:

Quoted 5 lines

Add support to handle the non standard CPER section kernel trace events which cover RAS errors who's section type is unknown.

There is something wrong with this patch... it doesn't build ;)

ras-report.c: In function ‘set_non_standard_event_backtrace’:
ras-report.c:218:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘const char *’ [-Wformat=]

   sprintf(bt_buf, "BACKTRACE="    \
                   ^~~~~~~~~~~~
Quoted 8 lines

CCLD rasdaemon
ras-non-standard-handler.o: In function `ras_non_standard_event_handler':
/devel/edac/rasdaemon/ras-non-standard-handler.c:143: undefined reference to `ras_report_non_standard_record'

ras-report.c: In function ‘set_non_standard_event_backtrace’:
ras-report.c:224:9: error: ‘struct ras_non_standard_event’ has no member named ‘error_count’

        ev->error_count, \
          ^~

Oops, you're right! I didn't notice that because I haven't been using the --enable-abrt-report configure option :)

I'll fix this in both of these patches and send a new patch series out.

Thanks,
Tyler