diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-15 16:35:17 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-02-15 19:09:25 +0100 |
commit | 163b8663b87fa1bfc34a171dd19ea435d108fa61 (patch) | |
tree | 01b318be5fcc1f6c7688e824925e5cf82cbcb7e3 /migration/block.c | |
parent | c7a7db4b517842633ea5ab6c848a10449b5b913a (diff) | |
download | qemu-163b8663b87fa1bfc34a171dd19ea435d108fa61.zip qemu-163b8663b87fa1bfc34a171dd19ea435d108fa61.tar.gz qemu-163b8663b87fa1bfc34a171dd19ea435d108fa61.tar.bz2 |
migration/block: Convert remaining DPRINTF() debug macro to trace events
Finish the conversion from commit fe80c0241d
("migration: using trace_ to replace DPRINTF").
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/block.c')
-rw-r--r-- | migration/block.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/migration/block.c b/migration/block.c index 29f6902..b5ce506 100644 --- a/migration/block.c +++ b/migration/block.c @@ -42,16 +42,6 @@ #define MAX_IO_BUFFERS 512 #define MAX_PARALLEL_IO 16 -/* #define DEBUG_BLK_MIGRATION */ - -#ifdef DEBUG_BLK_MIGRATION -#define DPRINTF(fmt, ...) \ - do { printf("blk_migration: " fmt, ## __VA_ARGS__); } while (0) -#else -#define DPRINTF(fmt, ...) \ - do { } while (0) -#endif - typedef struct BlkMigDevState { /* Written during setup phase. Can be read without a lock. */ BlockBackend *blk; @@ -502,7 +492,7 @@ static int blk_mig_save_bulked_block(QEMUFile *f) block_mig_state.prev_progress = progress; qemu_put_be64(f, (progress << BDRV_SECTOR_BITS) | BLK_MIG_FLAG_PROGRESS); - DPRINTF("Completed %d %%\r", progress); + trace_migration_block_progression(progress); } return ret; |