libtraceevent: Add support for nested ?: conditionals
It was reported that nested ?: conditionals were broken in libtraceevent.
Specifically, the following did not parse correctly:
REC->severity == AER_CORRECTABLE ? "Corrected" :
REC->severity == AER_FATAL ?
"Fatal" : "Uncorrected, non-fatal",
That was due to the second half of the ':' operator was not being evaluated.
Link: https://lore.kernel.org/all/20250414153835.947207-1-sargun@sargun.me/
Link: https://lore.kernel.org/20250414153526.25bb71db@gandalf.local.home
Reported-by: Borislav Petkov <bp@alien8.de>
Reported-by: Sargun Dhillon <sargun@sargun.me>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed