Loading tools/fs_config/fs_config_generator.py +4 −2 Original line number Diff line number Diff line Loading @@ -286,6 +286,7 @@ class AIDHeaderParser(object): """ for lineno, line in enumerate(aid_file): def error_message(msg): """Creates an error message with the current parsing state.""" return 'Error "{}" in file: "{}" on line: {}'.format( Loading @@ -307,8 +308,9 @@ class AIDHeaderParser(object): for x in AIDHeaderParser._AID_SKIP_RANGE): self._handle_aid(identifier, value) except ValueError as exception: sys.exit(error_message( '{} for "{}"'.format(exception, identifier))) sys.exit( error_message('{} for "{}"'.format(exception, identifier))) def _handle_aid(self, identifier, value): """Handle an AID C #define. Loading Loading
tools/fs_config/fs_config_generator.py +4 −2 Original line number Diff line number Diff line Loading @@ -286,6 +286,7 @@ class AIDHeaderParser(object): """ for lineno, line in enumerate(aid_file): def error_message(msg): """Creates an error message with the current parsing state.""" return 'Error "{}" in file: "{}" on line: {}'.format( Loading @@ -307,8 +308,9 @@ class AIDHeaderParser(object): for x in AIDHeaderParser._AID_SKIP_RANGE): self._handle_aid(identifier, value) except ValueError as exception: sys.exit(error_message( '{} for "{}"'.format(exception, identifier))) sys.exit( error_message('{} for "{}"'.format(exception, identifier))) def _handle_aid(self, identifier, value): """Handle an AID C #define. Loading