The message confusingly gives the *previous* value of c->device_state_fd as the fd, not the newly assigned one. [This is a candidate to fold into the earlier patch] Signed-off-by: David Gibson <david(a)gibson.dropbear.id.au> --- migrate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrate.c b/migrate.c index d47c44b0..2d9f77ef 100644 --- a/migrate.c +++ b/migrate.c @@ -374,7 +374,8 @@ void migrate_close(struct ctx *c) */ void migrate_request(struct ctx *c, int fd, bool target) { - debug("Migration requested, fd: %d", c->device_state_fd); + debug("Migration requested, fd: %d (was %d)", + fd, c->device_state_fd); if (c->device_state_fd != -1) migrate_close(c); -- 2.48.1