def format_kernel(variables, name, screen_width):
    """ Format regular variables """
    max_width = int(screen_width / 5)
    typ = '[' + variables[name]['type'] + ']'
    val = variables[name]['value']
    if len(val) > 3 * max_width:
        val = val[0:3 * max_width - 4] + '... '
    if len(name) > max_width:
        name = name[0:max_width - 4] + '... '
    if len(typ) > max_width:
        typ = typ[0:max_width - 4] + '... '
    s1 = '{:{wname}} {:{wval}}'.format(name, val, wname=max_width, wval=3 *
        max_width)
    s2 = '{:{wtype}}'.format(typ, wtype=screen_width - len(s1))
    return s1, s2
