[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 39/42] vhost-user: remove superfluous '\n' around err
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 39/42] vhost-user: remove superfluous '\n' around error_report() |
Date: |
Thu, 30 Apr 2015 08:08:52 +0300 |
From: Gonglei <address@hidden>
Signed-off-by: Gonglei <address@hidden>
Reviewed-by: Andreas Färber <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/virtio/vhost-user.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
index aefe0bb..e7ab829 100644
--- a/hw/virtio/vhost-user.c
+++ b/hw/virtio/vhost-user.c
@@ -128,7 +128,7 @@ static int vhost_user_read(struct vhost_dev *dev,
VhostUserMsg *msg)
r = qemu_chr_fe_read_all(chr, p, size);
if (r != size) {
- error_report("Failed to read msg header. Read %d instead of %d.\n", r,
+ error_report("Failed to read msg header. Read %d instead of %d.", r,
size);
goto fail;
}
@@ -136,7 +136,7 @@ static int vhost_user_read(struct vhost_dev *dev,
VhostUserMsg *msg)
/* validate received flags */
if (msg->flags != (VHOST_USER_REPLY_MASK | VHOST_USER_VERSION)) {
error_report("Failed to read msg header."
- " Flags 0x%x instead of 0x%x.\n", msg->flags,
+ " Flags 0x%x instead of 0x%x.", msg->flags,
VHOST_USER_REPLY_MASK | VHOST_USER_VERSION);
goto fail;
}
@@ -144,7 +144,7 @@ static int vhost_user_read(struct vhost_dev *dev,
VhostUserMsg *msg)
/* validate message size is sane */
if (msg->size > VHOST_USER_PAYLOAD_SIZE) {
error_report("Failed to read msg header."
- " Size %d exceeds the maximum %zu.\n", msg->size,
+ " Size %d exceeds the maximum %zu.", msg->size,
VHOST_USER_PAYLOAD_SIZE);
goto fail;
}
@@ -155,7 +155,7 @@ static int vhost_user_read(struct vhost_dev *dev,
VhostUserMsg *msg)
r = qemu_chr_fe_read_all(chr, p, size);
if (r != size) {
error_report("Failed to read msg payload."
- " Read %d instead of %d.\n", r, msg->size);
+ " Read %d instead of %d.", r, msg->size);
goto fail;
}
}
@@ -235,8 +235,8 @@ static int vhost_user_call(struct vhost_dev *dev, unsigned
long int request,
msg.memory.nregions = fd_num;
if (!fd_num) {
- error_report("Failed initializing vhost-user memory map\n"
- "consider using -object memory-backend-file share=on\n");
+ error_report("Failed initializing vhost-user memory map, "
+ "consider using -object memory-backend-file share=on");
return -1;
}
@@ -280,7 +280,7 @@ static int vhost_user_call(struct vhost_dev *dev, unsigned
long int request,
}
break;
default:
- error_report("vhost-user trying to send unhandled ioctl\n");
+ error_report("vhost-user trying to send unhandled ioctl");
return -1;
break;
}
@@ -296,27 +296,27 @@ static int vhost_user_call(struct vhost_dev *dev,
unsigned long int request,
if (msg_request != msg.request) {
error_report("Received unexpected msg type."
- " Expected %d received %d\n", msg_request, msg.request);
+ " Expected %d received %d", msg_request, msg.request);
return -1;
}
switch (msg_request) {
case VHOST_USER_GET_FEATURES:
if (msg.size != sizeof(m.u64)) {
- error_report("Received bad msg size.\n");
+ error_report("Received bad msg size.");
return -1;
}
*((__u64 *) arg) = msg.u64;
break;
case VHOST_USER_GET_VRING_BASE:
if (msg.size != sizeof(m.state)) {
- error_report("Received bad msg size.\n");
+ error_report("Received bad msg size.");
return -1;
}
memcpy(arg, &msg.state, sizeof(struct vhost_vring_state));
break;
default:
- error_report("Received unexpected msg type.\n");
+ error_report("Received unexpected msg type.");
return -1;
break;
}
--
2.1.4
- [Qemu-devel] [PULL 25/42] microblaze: mmu: Delete flip_um fn prototype, (continued)
- [Qemu-devel] [PULL 25/42] microblaze: mmu: Delete flip_um fn prototype, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 26/42] microblaze: cpu: Remote unused cpu_get_pc, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 42/42] microblaze: fix memory leak, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 41/42] tcg: Delete unused cpu_pc_from_tb(), Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 17/42] usb: Remove unused functions, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 35/42] linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 31/42] cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus), Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 32/42] input: remove unused mouse_handlers list, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 24/42] defconfigs: Piggyback microblazeel on microblaze, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 29/42] microblaze: cpu: Renumber EXCP_* constants to close gap, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 39/42] vhost-user: remove superfluous '\n' around error_report(),
Michael Tokarev <=
- [Qemu-devel] [PULL 37/42] qmp-commands: Fix typo, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 06/42] ui/console : remove 'struct' from 'typedef struct' type, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 23/42] libcacard: do not use full paths for include files in the same dir, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 04/42] ui/vnc : fix coding style, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 28/42] microblaze: cpu: Delete EXCP_NMI, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 08/42] misc: Fix new collection of typos, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 33/42] qemu-char: remove unused list node from FDCharDriver, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 34/42] coroutine: remove unnecessary parentheses in qemu_co_queue_empty, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 11/42] tpm: fix coding style, Michael Tokarev, 2015/04/30
- [Qemu-devel] [PULL 15/42] pci: Remove unused function ich9_d2pbr_init(), Michael Tokarev, 2015/04/30