mirror of https://github.com/ARMmbed/mbed-os.git
Print percent complete when building
parent
725352a1e7
commit
df71f8e173
|
@ -341,7 +341,13 @@ class mbedToolchain:
|
||||||
|
|
||||||
elif event['type'] == 'progress':
|
elif event['type'] == 'progress':
|
||||||
if not silent:
|
if not silent:
|
||||||
msg = '%s: %s' % (event['action'].title(), basename(event['file']))
|
if 'percent' in event:
|
||||||
|
msg = '{} [{:>5.1f}%]: {}'.format(event['action'].title(),
|
||||||
|
event['percent'],
|
||||||
|
basename(event['file']))
|
||||||
|
else:
|
||||||
|
msg = '{}: {}'.format(event['action'].title(),
|
||||||
|
basename(event['file']))
|
||||||
|
|
||||||
if msg:
|
if msg:
|
||||||
print msg
|
print msg
|
||||||
|
|
Loading…
Reference in New Issue