[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/11] migration/multifd: Fix error message in multifd_recv_initi
From: |
Avihai Horon |
Subject: |
[PATCH 05/11] migration/multifd: Fix error message in multifd_recv_initial_packet() |
Date: |
Sun, 31 Dec 2023 11:30:10 +0200 |
In multifd_recv_initial_packet(), if MultiFDInit_t->id is greater than
the configured number of multifd channels, an irrelevant error message
about multifd version is printed.
Change the error message to a relevant one about the channel id.
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
---
migration/multifd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/migration/multifd.c b/migration/multifd.c
index 409460684f..a6204fc72f 100644
--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -228,8 +228,8 @@ static int multifd_recv_initial_packet(QIOChannel *c, Error
**errp)
}
if (msg.id > migrate_multifd_channels()) {
- error_setg(errp, "multifd: received channel version %u "
- "expected %u", msg.version, MULTIFD_VERSION);
+ error_setg(errp, "multifd: received channel id %u is greater than "
+ "number of channels %u", msg.id,
migrate_multifd_channels());
return -1;
}
--
2.26.3
- [PATCH 00/11] migration: Misc cleanups and fixes, Avihai Horon, 2023/12/31
- [PATCH 01/11] migration: Remove migrate_max_downtime() declaration, Avihai Horon, 2023/12/31
- [PATCH 02/11] migration: Remove nulling of hostname in migrate_init(), Avihai Horon, 2023/12/31
- [PATCH 03/11] migration: Refactor migration_incoming_setup(), Avihai Horon, 2023/12/31
- [PATCH 04/11] migration: Remove errp parameter in migration_fd_process_incoming(), Avihai Horon, 2023/12/31
- [PATCH 05/11] migration/multifd: Fix error message in multifd_recv_initial_packet(),
Avihai Horon <=
- [PATCH 06/11] migration/multifd: Simplify multifd_channel_connect() if else statement, Avihai Horon, 2023/12/31
- [PATCH 07/11] migration/multifd: Fix leaking of Error in TLS error flow, Avihai Horon, 2023/12/31
- [PATCH 08/11] migration/multifd: Remove error_setg() in migration_ioc_process_incoming(), Avihai Horon, 2023/12/31
- [PATCH 11/11] migration/multifd: Remove unnecessary usage of local Error, Avihai Horon, 2023/12/31
- [PATCH 10/11] migration: Remove unnecessary usage of local Error, Avihai Horon, 2023/12/31
- [PATCH 09/11] migration: Fix migration_channel_read_peek() error path, Avihai Horon, 2023/12/31