tockloader.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:tockloader 作者: helena-project 项目源码 文件源码
def _print_apps (self, apps, verbose, quiet):
        '''
        Print information about a list of apps
        '''
        if not quiet:
            # Print info about each app
            for i,app in enumerate(apps):
                print('[App {}]'.format(i))

                # Check if this app is OK with the MPU region requirements.
                if not self._app_is_aligned_correctly(app.address, app.get_size()):
                    print('  [WARNING] App is misaligned for the MPU')

                print(textwrap.indent(app.info(verbose), '  '))
                print('')

            if len(apps) == 0:
                print('No found apps.')

        else:
            # In quiet mode just show the names.
            app_names = []
            for app in apps:
                app_names.append(app.name)
            print(' '.join(app_names))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号