decode_sval = function()

in tools/locktrace.lua [69:81]


decode_sval = function(sval)
    local sbit = " "
    if sval & 0x1 ~= 0 then
        sbit = "S"
    end
    local ibit = " "
    if sval & 0x2 ~= 0 then
        ibit = "I"
    end

    local count = sval >> 8
    return string.format("[0x%06x,  %s%s]", count, ibit, sbit)
end