Browse Source

mk_update: Display lengths of update payloads in 'verify' command

Keir Fraser 3 years ago
parent
commit
fddd11bce0
1 changed files with 4 additions and 3 deletions
  1. 4 3
      scripts/mk_update.py

+ 4 - 3
scripts/mk_update.py

@@ -86,9 +86,10 @@ def _verify_upd(d):
         crc16 = crcmod.predefined.Crc('crc-ccitt-false')
         crc16.update(d[4:upd_len+4])
         assert crc16.crcValue == 0
-        print('%s %s v%u.%u' % (hw_model_to_name[hw_model],
-                                 {b'BL': 'Boot', b'GW': 'Main'}[upd_type],
-                                 major, minor))
+        print('%s %s v%u.%u: %u bytes'
+              % (hw_model_to_name[hw_model],
+                 {b'BL': 'Boot', b'GW': 'Main'}[upd_type],
+                 major, minor, upd_len))
         d = d[upd_len+4:]
 
 def verify_upd(argv):