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))
评论列表
文章目录