Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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(helpers.text_in_box('App {}'.format(i), 52))
# Check if this app is OK with the MPU region requirements.
if not self._app_is_aligned_correctly(app.get_address(), app.get_size()):
print(' [WARNING] App is misaligned for the MPU')
print(textwrap.indent(app.info(verbose), ' '))
print('')
if len(apps) == 0:
logging.info('No found apps.')
else:
# In quiet mode just show the names.
print(' '.join([app.get_name() for app in apps]))