Check if interrupt action name is not null in statedump
[lttng-modules.git] / instrumentation / events / lttng-module / lttng-statedump.h
index d350cad3fd45048f99b3d777266ecdf79b82b538..e4c86d659373307b232216be42f85efc590a7e65 100644 (file)
@@ -150,12 +150,12 @@ TRACE_EVENT(lttng_statedump_interrupt,
        TP_STRUCT__entry(
                __field(unsigned int, irq)
                __string(name, chip_name)
-               __string(action, action->name)
+               __string(action, action->name ? : "")
        ),
        TP_fast_assign(
                tp_assign(irq, irq)
                tp_strcpy(name, chip_name)
-               tp_strcpy(action, action->name)
+               tp_strcpy(action, action->name ? : "")
        ),
        TP_printk("")
 )
This page took 0.024076 seconds and 4 git commands to generate.