fpgasupdate: log the bdf for each update
Add the PCIe sbdf to the log output of the applying update message.
Add an update complete message containing the sbdf.
@@ -595,7 +595,7 @@ def update_fw(fd_dev, args, pac):
except IOError as exc:
return exc.errno, exc.strerror
- LOG.info('applying update')
+ LOG.info('applying update to %s', pac.pci_node.pci_address)
with progress(time=apply_time, **progress_cfg) as prg:
while True:
try:
@@ -608,6 +608,8 @@ def update_fw(fd_dev, args, pac):
prg.tick()
time.sleep(1.0)
+ LOG.info('update of %s complete', pac.pci_node.pci_address)
+
return 0, 'Secure update OK'
