diff options
author | William Henderson <william.henderson@nutanix.com> | 2023-07-14 11:53:25 +0000 |
---|---|---|
committer | John Levon <john.levon@nutanix.com> | 2023-09-15 12:59:39 +0100 |
commit | 0a2d88ae0510ccd7e34f27d3d53aa2a4ad63b14b (patch) | |
tree | fd9535928527f9bf9c02cbcd977a2f8487357f45 | |
parent | 54599b2d0434a15bc2e41a656ff9385343cebf35 (diff) | |
download | libvfio-user-0a2d88ae0510ccd7e34f27d3d53aa2a4ad63b14b.zip libvfio-user-0a2d88ae0510ccd7e34f27d3d53aa2a4ad63b14b.tar.gz libvfio-user-0a2d88ae0510ccd7e34f27d3d53aa2a4ad63b14b.tar.bz2 |
fix: make migration data size 32-bit
Signed-off-by: William Henderson <william.henderson@nutanix.com>
-rw-r--r-- | include/vfio-user.h | 2 | ||||
-rw-r--r-- | lib/migration.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/vfio-user.h b/include/vfio-user.h index 532e353..e16501c 100644 --- a/include/vfio-user.h +++ b/include/vfio-user.h @@ -277,7 +277,7 @@ enum vfio_user_device_mig_state { struct vfio_user_mig_data { uint32_t argsz; - uint64_t size; + uint32_t size; uint8_t data[]; } __attribute__((packed)); diff --git a/lib/migration.c b/lib/migration.c index 5995677..171a452 100644 --- a/lib/migration.c +++ b/lib/migration.c @@ -251,7 +251,7 @@ handle_mig_data_read(vfu_ctx_t *vfu_ctx, vfu_msg_t *msg) } if (req->size > vfu_ctx->client_max_data_xfer_size) { - vfu_log(vfu_ctx, LOG_ERR, "transfer size exceeds limit (%ld > %ld)", + vfu_log(vfu_ctx, LOG_ERR, "transfer size exceeds limit (%d > %ld)", req->size, vfu_ctx->client_max_data_xfer_size); return -EINVAL; } |