提交 c6547661 编写于 作者: G Gonglei 提交者: Michael Tokarev

vhost: Remove superfluous '\n' around error_report()

Signed-off-by: NGonglei <arei.gonglei@huawei.com>
Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 d448527a
...@@ -61,7 +61,7 @@ int vhost_set_backend_type(struct vhost_dev *dev, VhostBackendType backend_type) ...@@ -61,7 +61,7 @@ int vhost_set_backend_type(struct vhost_dev *dev, VhostBackendType backend_type)
dev->vhost_ops = &user_ops; dev->vhost_ops = &user_ops;
break; break;
default: default:
error_report("Unknown vhost backend type\n"); error_report("Unknown vhost backend type");
r = -1; r = -1;
} }
......
...@@ -121,12 +121,12 @@ static void net_vhost_user_event(void *opaque, int event) ...@@ -121,12 +121,12 @@ static void net_vhost_user_event(void *opaque, int event)
case CHR_EVENT_OPENED: case CHR_EVENT_OPENED:
vhost_user_start(s); vhost_user_start(s);
net_vhost_link_down(s, false); 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; break;
case CHR_EVENT_CLOSED: case CHR_EVENT_CLOSED:
net_vhost_link_down(s, true); net_vhost_link_down(s, true);
vhost_user_stop(s); vhost_user_stop(s);
error_report("chardev \"%s\" went down\n", s->chr->label); error_report("chardev \"%s\" went down", s->chr->label);
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册