Add work around for event output bug in older kernels

Older kernels have a bug that prints out the macro name instead of
what it should represent. This breaks parsing the data from userspace.
This especially affects the mac80211 trace events.

This adds a work around in the tool to handle the bug when executed
on older kernels.

See Linux kernel commit 811cb50baf63461ce0bdb234927046131fc7fa8b
for details.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
1 file changed