def METHOD_NAME(self):
    if self.field_name is not None:
        value = self.cs.read_register_field(self.reg_name, self.field_name)
        self.logger.log("[CHIPSEC] {}.{}=0x{:X}".format(self.reg_name, self.field_name, value))
    else:
        value = self.cs.read_register(self.reg_name)
        self.logger.log("[CHIPSEC] {}=0x{:X}".format(self.reg_name, value))
        self.cs.print_register(self.reg_name, value)