Print all the fields of a Bitfield object to stdout.  This is
    primarly a diagnostic aid during debugging.

def print_fields(bf, *args, **kwargs):
    """
    Print all the fields of a Bitfield object to stdout.  This is
    primarly a diagnostic aid during debugging.
    """
    
    vals = {k: hex(v) for k, v in bf.items()}
    print(bf.base, vals, *args, **kwargs)