get_kwq_type = function()

in tools/locktrace.lua [39:49]


get_kwq_type = function(val)
    if val & 0xff == 0x1 then
        return "MTX"
    elseif val & 0xff == 0x2 then
        return "CVAR"
    elseif val & 0xff == 0x4 then
        return "RWL"
    else
        return string.format("0x%04x", val)
    end
end