in tools/locktrace.lua [51:67]
decode_lval = function(lval)
local kbit = " "
if lval & 0x1 ~= 0 then
kbit = "K"
end
local ebit = " "
if lval & 0x2 ~= 0 then
ebit = "E"
end
local wbit = " "
if lval & 0x4 ~= 0 then
wbit = "W"
end
local count = lval >> 8
return string.format("[0x%06x, %s%s%s]", count, wbit, ebit, kbit)
end