Skip to content

Commit

Permalink
print device filename if no bitmaps are found for easier identification
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Oct 9, 2024
1 parent 3e05ba9 commit ce7d034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qmpbackup
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ async def main():
if argv.show == "bitmaps":
for dev in blockdev:
if not dev.bitmaps:
log.info('No bitmaps found for device: "%s"', dev.node)
log.info(
'No bitmaps found for device: "%s:%s"', dev.node, dev.filename
)
continue
log.info("%s:", dev.node)
log.info("%s", lib.json_pp(dev.bitmaps))
Expand Down

0 comments on commit ce7d034

Please sign in to comment.