|
|
9ae3a8 |
From 5ff68375e65250c295b6ed5ba946dc792df3cd55 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
Message-Id: <5ff68375e65250c295b6ed5ba946dc792df3cd55.1387382496.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
In-Reply-To: <c5386144fbf09f628148101bc674e2421cdd16e3.1387382496.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
References: <c5386144fbf09f628148101bc674e2421cdd16e3.1387382496.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
From: Nigel Croxon <ncroxon@redhat.com>
|
|
|
9ae3a8 |
Date: Thu, 14 Nov 2013 22:52:58 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 22/46] rdma: correct newlines in error statements
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Nigel Croxon <ncroxon@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1384469598-13137-23-git-send-email-ncroxon@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 55712
|
|
|
9ae3a8 |
O-Subject: [RHEL7.0 PATCH 22/42] rdma: correct newlines in error statements
|
|
|
9ae3a8 |
Bugzilla: 1011720
|
|
|
9ae3a8 |
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Amit Shah <amit.shah@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Bugzilla: 1011720
|
|
|
9ae3a8 |
https://bugzilla.redhat.com/show_bug.cgi?id=1011720
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
>From commit ID:
|
|
|
9ae3a8 |
commit 66988941251ef64044aa3b951ebd84162e5a4e3a
|
|
|
9ae3a8 |
Author: Michael R. Hines <mrhines@us.ibm.com>
|
|
|
9ae3a8 |
Date: Sat Aug 3 22:54:50 2013 -0400
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
rdma: correct newlines in error statements
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Don't print newlines on the error_setg() function,
|
|
|
9ae3a8 |
but still allow newlines on fprintf().
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
|
|
|
9ae3a8 |
Message-id: 1375584894-9917-4-git-send-email-mrhines@linux.vnet.ibm.com
|
|
|
9ae3a8 |
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
migration-rdma.c | 68 +++++++++++++++++++++++++++---------------------------
|
|
|
9ae3a8 |
1 files changed, 34 insertions(+), 34 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Michal Novotny <minovotn@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
migration-rdma.c | 68 ++++++++++++++++++++++++++++----------------------------
|
|
|
9ae3a8 |
1 file changed, 34 insertions(+), 34 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/migration-rdma.c b/migration-rdma.c
|
|
|
9ae3a8 |
index fe6118d..c958e5f 100644
|
|
|
9ae3a8 |
--- a/migration-rdma.c
|
|
|
9ae3a8 |
+++ b/migration-rdma.c
|
|
|
9ae3a8 |
@@ -60,7 +60,7 @@
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
#define ERROR(errp, fmt, ...) \
|
|
|
9ae3a8 |
do { \
|
|
|
9ae3a8 |
- fprintf(stderr, "RDMA ERROR: " fmt, ## __VA_ARGS__); \
|
|
|
9ae3a8 |
+ fprintf(stderr, "RDMA ERROR: " fmt "\n", ## __VA_ARGS__); \
|
|
|
9ae3a8 |
if (errp && (*(errp) == NULL)) { \
|
|
|
9ae3a8 |
error_setg(errp, "RDMA ERROR: " fmt, ## __VA_ARGS__); \
|
|
|
9ae3a8 |
} \
|
|
|
9ae3a8 |
@@ -748,21 +748,21 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
int af = rdma->ipv6 ? PF_INET6 : PF_INET;
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
if (rdma->host == NULL || !strcmp(rdma->host, "")) {
|
|
|
9ae3a8 |
- ERROR(errp, "RDMA hostname has not been set\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "RDMA hostname has not been set");
|
|
|
9ae3a8 |
return -1;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/* create CM channel */
|
|
|
9ae3a8 |
rdma->channel = rdma_create_event_channel();
|
|
|
9ae3a8 |
if (!rdma->channel) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not create CM channel\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "could not create CM channel");
|
|
|
9ae3a8 |
return -1;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/* create CM id */
|
|
|
9ae3a8 |
ret = rdma_create_id(rdma->channel, &rdma->cm_id, NULL, RDMA_PS_TCP);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not create channel id\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "could not create channel id");
|
|
|
9ae3a8 |
goto err_resolve_create_id;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -771,7 +771,7 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ret = getaddrinfo(rdma->host, port_str, NULL, &res;;
|
|
|
9ae3a8 |
if (ret < 0) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not getaddrinfo address %s\n", rdma->host);
|
|
|
9ae3a8 |
+ ERROR(errp, "could not getaddrinfo address %s", rdma->host);
|
|
|
9ae3a8 |
goto err_resolve_get_addr;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -783,7 +783,7 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
ret = rdma_resolve_addr(rdma->cm_id, NULL, res->ai_addr,
|
|
|
9ae3a8 |
RDMA_RESOLVE_TIMEOUT_MS);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not resolve address %s\n", rdma->host);
|
|
|
9ae3a8 |
+ ERROR(errp, "could not resolve address %s", rdma->host);
|
|
|
9ae3a8 |
goto err_resolve_get_addr;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -791,12 +791,12 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ret = rdma_get_cm_event(rdma->channel, &cm_event);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not perform event_addr_resolved\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "could not perform event_addr_resolved");
|
|
|
9ae3a8 |
goto err_resolve_get_addr;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
if (cm_event->event != RDMA_CM_EVENT_ADDR_RESOLVED) {
|
|
|
9ae3a8 |
- ERROR(errp, "result not equal to event_addr_resolved %s\n",
|
|
|
9ae3a8 |
+ ERROR(errp, "result not equal to event_addr_resolved %s",
|
|
|
9ae3a8 |
rdma_event_str(cm_event->event));
|
|
|
9ae3a8 |
perror("rdma_resolve_addr");
|
|
|
9ae3a8 |
goto err_resolve_get_addr;
|
|
|
9ae3a8 |
@@ -806,17 +806,17 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
/* resolve route */
|
|
|
9ae3a8 |
ret = rdma_resolve_route(rdma->cm_id, RDMA_RESOLVE_TIMEOUT_MS);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not resolve rdma route\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "could not resolve rdma route");
|
|
|
9ae3a8 |
goto err_resolve_get_addr;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ret = rdma_get_cm_event(rdma->channel, &cm_event);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not perform event_route_resolved\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "could not perform event_route_resolved");
|
|
|
9ae3a8 |
goto err_resolve_get_addr;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
if (cm_event->event != RDMA_CM_EVENT_ROUTE_RESOLVED) {
|
|
|
9ae3a8 |
- ERROR(errp, "result not equal to event_route_resolved: %s\n",
|
|
|
9ae3a8 |
+ ERROR(errp, "result not equal to event_route_resolved: %s",
|
|
|
9ae3a8 |
rdma_event_str(cm_event->event));
|
|
|
9ae3a8 |
rdma_ack_cm_event(cm_event);
|
|
|
9ae3a8 |
goto err_resolve_get_addr;
|
|
|
9ae3a8 |
@@ -2117,26 +2117,26 @@ static int qemu_rdma_source_init(RDMAContext *rdma, Error **errp, bool pin_all)
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
ERROR(temp, "rdma migration: error allocating pd and cq! Your mlock()"
|
|
|
9ae3a8 |
" limits may be too low. Please check $ ulimit -a # and "
|
|
|
9ae3a8 |
- "search for 'ulimit -l' in the output\n");
|
|
|
9ae3a8 |
+ "search for 'ulimit -l' in the output");
|
|
|
9ae3a8 |
goto err_rdma_source_init;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ret = qemu_rdma_alloc_qp(rdma);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(temp, "rdma migration: error allocating qp!\n");
|
|
|
9ae3a8 |
+ ERROR(temp, "rdma migration: error allocating qp!");
|
|
|
9ae3a8 |
goto err_rdma_source_init;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ret = qemu_rdma_init_ram_blocks(rdma);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(temp, "rdma migration: error initializing ram blocks!\n");
|
|
|
9ae3a8 |
+ ERROR(temp, "rdma migration: error initializing ram blocks!");
|
|
|
9ae3a8 |
goto err_rdma_source_init;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
for (idx = 0; idx <= RDMA_WRID_MAX; idx++) {
|
|
|
9ae3a8 |
ret = qemu_rdma_reg_control(rdma, idx);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(temp, "rdma migration: error registering %d control!\n",
|
|
|
9ae3a8 |
+ ERROR(temp, "rdma migration: error registering %d control!",
|
|
|
9ae3a8 |
idx);
|
|
|
9ae3a8 |
goto err_rdma_source_init;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
@@ -2178,7 +2178,7 @@ static int qemu_rdma_connect(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
ret = rdma_connect(rdma->cm_id, &conn_param);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
perror("rdma_connect");
|
|
|
9ae3a8 |
- ERROR(errp, "connecting to destination!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "connecting to destination!");
|
|
|
9ae3a8 |
rdma_destroy_id(rdma->cm_id);
|
|
|
9ae3a8 |
rdma->cm_id = NULL;
|
|
|
9ae3a8 |
goto err_rdma_source_connect;
|
|
|
9ae3a8 |
@@ -2187,7 +2187,7 @@ static int qemu_rdma_connect(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
ret = rdma_get_cm_event(rdma->channel, &cm_event);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
perror("rdma_get_cm_event after rdma_connect");
|
|
|
9ae3a8 |
- ERROR(errp, "connecting to destination!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "connecting to destination!");
|
|
|
9ae3a8 |
rdma_ack_cm_event(cm_event);
|
|
|
9ae3a8 |
rdma_destroy_id(rdma->cm_id);
|
|
|
9ae3a8 |
rdma->cm_id = NULL;
|
|
|
9ae3a8 |
@@ -2196,7 +2196,7 @@ static int qemu_rdma_connect(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
if (cm_event->event != RDMA_CM_EVENT_ESTABLISHED) {
|
|
|
9ae3a8 |
perror("rdma_get_cm_event != EVENT_ESTABLISHED after rdma_connect");
|
|
|
9ae3a8 |
- ERROR(errp, "connecting to destination!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "connecting to destination!");
|
|
|
9ae3a8 |
rdma_ack_cm_event(cm_event);
|
|
|
9ae3a8 |
rdma_destroy_id(rdma->cm_id);
|
|
|
9ae3a8 |
rdma->cm_id = NULL;
|
|
|
9ae3a8 |
@@ -2212,7 +2212,7 @@ static int qemu_rdma_connect(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
if (rdma->pin_all && !(cap.flags & RDMA_CAPABILITY_PIN_ALL)) {
|
|
|
9ae3a8 |
ERROR(errp, "Server cannot support pinning all memory. "
|
|
|
9ae3a8 |
- "Will register memory dynamically.\n");
|
|
|
9ae3a8 |
+ "Will register memory dynamically.");
|
|
|
9ae3a8 |
rdma->pin_all = false;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -2222,7 +2222,7 @@ static int qemu_rdma_connect(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ret = qemu_rdma_post_recv_control(rdma, 0);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "posting second control recv!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "posting second control recv!");
|
|
|
9ae3a8 |
goto err_rdma_source_connect;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -2251,14 +2251,14 @@ static int qemu_rdma_dest_init(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
if (rdma->host == NULL) {
|
|
|
9ae3a8 |
- ERROR(errp, "RDMA host is not set!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "RDMA host is not set!");
|
|
|
9ae3a8 |
rdma->error_state = -EINVAL;
|
|
|
9ae3a8 |
return -1;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
/* create CM channel */
|
|
|
9ae3a8 |
rdma->channel = rdma_create_event_channel();
|
|
|
9ae3a8 |
if (!rdma->channel) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not create rdma event channel\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "could not create rdma event channel");
|
|
|
9ae3a8 |
rdma->error_state = -EINVAL;
|
|
|
9ae3a8 |
return -1;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
@@ -2266,7 +2266,7 @@ static int qemu_rdma_dest_init(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
/* create CM id */
|
|
|
9ae3a8 |
ret = rdma_create_id(rdma->channel, &listen_id, NULL, RDMA_PS_TCP);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not create cm_id!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "could not create cm_id!");
|
|
|
9ae3a8 |
goto err_dest_init_create_listen_id;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -2279,7 +2279,7 @@ static int qemu_rdma_dest_init(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
if (rdma->host && strcmp("", rdma->host)) {
|
|
|
9ae3a8 |
ret = getaddrinfo(rdma->host, port_str, NULL, &res;;
|
|
|
9ae3a8 |
if (ret < 0) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not getaddrinfo address %s\n", rdma->host);
|
|
|
9ae3a8 |
+ ERROR(errp, "could not getaddrinfo address %s", rdma->host);
|
|
|
9ae3a8 |
goto err_dest_init_bind_addr;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -2287,7 +2287,7 @@ static int qemu_rdma_dest_init(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
inet_ntop(af, &((struct sockaddr_in *) res->ai_addr)->sin_addr,
|
|
|
9ae3a8 |
ip, sizeof ip);
|
|
|
9ae3a8 |
} else {
|
|
|
9ae3a8 |
- ERROR(errp, "migration host and port not specified!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "migration host and port not specified!");
|
|
|
9ae3a8 |
ret = -EINVAL;
|
|
|
9ae3a8 |
goto err_dest_init_bind_addr;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
@@ -2296,7 +2296,7 @@ static int qemu_rdma_dest_init(RDMAContext *rdma, Error **errp)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ret = rdma_bind_addr(listen_id, res->ai_addr);
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "Error: could not rdma_bind_addr!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "Error: could not rdma_bind_addr!");
|
|
|
9ae3a8 |
goto err_dest_init_bind_addr;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -3036,7 +3036,7 @@ static int qemu_rdma_registration_stop(QEMUFile *f, void *opaque,
|
|
|
9ae3a8 |
®_result_idx, rdma->pin_all ?
|
|
|
9ae3a8 |
qemu_rdma_reg_whole_ram_blocks : NULL);
|
|
|
9ae3a8 |
if (ret < 0) {
|
|
|
9ae3a8 |
- ERROR(errp, "receiving remote info!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "receiving remote info!");
|
|
|
9ae3a8 |
return ret;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -3061,7 +3061,7 @@ static int qemu_rdma_registration_stop(QEMUFile *f, void *opaque,
|
|
|
9ae3a8 |
if (local->nb_blocks != nb_remote_blocks) {
|
|
|
9ae3a8 |
ERROR(errp, "ram blocks mismatch #1! "
|
|
|
9ae3a8 |
"Your QEMU command line parameters are probably "
|
|
|
9ae3a8 |
- "not identical on both the source and destination.\n");
|
|
|
9ae3a8 |
+ "not identical on both the source and destination.");
|
|
|
9ae3a8 |
return -EINVAL;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -3077,7 +3077,7 @@ static int qemu_rdma_registration_stop(QEMUFile *f, void *opaque,
|
|
|
9ae3a8 |
if (rdma->block[i].length != local->block[j].length) {
|
|
|
9ae3a8 |
ERROR(errp, "ram blocks mismatch #2! "
|
|
|
9ae3a8 |
"Your QEMU command line parameters are probably "
|
|
|
9ae3a8 |
- "not identical on both the source and destination.\n");
|
|
|
9ae3a8 |
+ "not identical on both the source and destination.");
|
|
|
9ae3a8 |
return -EINVAL;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
local->block[j].remote_host_addr =
|
|
|
9ae3a8 |
@@ -3089,7 +3089,7 @@ static int qemu_rdma_registration_stop(QEMUFile *f, void *opaque,
|
|
|
9ae3a8 |
if (j >= local->nb_blocks) {
|
|
|
9ae3a8 |
ERROR(errp, "ram blocks mismatch #3! "
|
|
|
9ae3a8 |
"Your QEMU command line parameters are probably "
|
|
|
9ae3a8 |
- "not identical on both the source and destination.\n");
|
|
|
9ae3a8 |
+ "not identical on both the source and destination.");
|
|
|
9ae3a8 |
return -EINVAL;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
@@ -3163,7 +3163,7 @@ static void rdma_accept_incoming_migration(void *opaque)
|
|
|
9ae3a8 |
ret = qemu_rdma_accept(rdma);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "RDMA Migration initialization failed!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "RDMA Migration initialization failed!");
|
|
|
9ae3a8 |
return;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -3171,7 +3171,7 @@ static void rdma_accept_incoming_migration(void *opaque)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
f = qemu_fopen_rdma(rdma, "rb");
|
|
|
9ae3a8 |
if (f == NULL) {
|
|
|
9ae3a8 |
- ERROR(errp, "could not qemu_fopen_rdma!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "could not qemu_fopen_rdma!");
|
|
|
9ae3a8 |
qemu_rdma_cleanup(rdma);
|
|
|
9ae3a8 |
return;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
@@ -3204,7 +3204,7 @@ void rdma_start_incoming_migration(const char *host_port, Error **errp)
|
|
|
9ae3a8 |
ret = rdma_listen(rdma->listen_id, 5);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
if (ret) {
|
|
|
9ae3a8 |
- ERROR(errp, "listening on socket!\n");
|
|
|
9ae3a8 |
+ ERROR(errp, "listening on socket!");
|
|
|
9ae3a8 |
goto err;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -3228,7 +3228,7 @@ void rdma_start_outgoing_migration(void *opaque,
|
|
|
9ae3a8 |
int ret = 0;
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
if (rdma == NULL) {
|
|
|
9ae3a8 |
- ERROR(temp, "Failed to initialize RDMA data structures! %d\n", ret);
|
|
|
9ae3a8 |
+ ERROR(temp, "Failed to initialize RDMA data structures! %d", ret);
|
|
|
9ae3a8 |
goto err;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.11.7
|
|
|
9ae3a8 |
|