diff --git a/hw/virtio/vhost-backend.c b/hw/virtio/vhost-backend.c index ff4f2001bb719bb976e7cda8fb16faf89a7c59ce..4d68a27658d63b7ffbd749b216b17b0e27fcc9f7 100644 --- a/hw/virtio/vhost-backend.c +++ b/hw/virtio/vhost-backend.c @@ -61,7 +61,7 @@ int vhost_set_backend_type(struct vhost_dev *dev, VhostBackendType backend_type) dev->vhost_ops = &user_ops; break; default: - error_report("Unknown vhost backend type\n"); + error_report("Unknown vhost backend type"); r = -1; } diff --git a/net/vhost-user.c b/net/vhost-user.c index 2435b0f826daa0bd2e00e9fac4c45ff8428a3060..1d86a2be11b5fed25e12330f398d8a8a3be15513 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -121,12 +121,12 @@ static void net_vhost_user_event(void *opaque, int event) case CHR_EVENT_OPENED: vhost_user_start(s); net_vhost_link_down(s, false); - error_report("chardev \"%s\" went up\n", s->chr->label); + error_report("chardev \"%s\" went up", s->chr->label); break; case CHR_EVENT_CLOSED: net_vhost_link_down(s, true); vhost_user_stop(s); - error_report("chardev \"%s\" went down\n", s->chr->label); + error_report("chardev \"%s\" went down", s->chr->label); break; } }