decode_cv_sval = function()

in tools/locktrace.lua [83:95]


decode_cv_sval = function(sval)
    local sbit = " "
    if sval & 0x1 ~= 0 then
        sbit = "C"
    end
    local ibit = " "
    if sval & 0x2 ~= 0 then
        ibit = "P"
    end

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