From 9af9e0fed76e91ed42cb6d31ab6c665f7d691c1c Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 18 Dec 2015 16:35:19 +0100 Subject: error: Strip trailing '\n' from error string arguments (again) Commit 6daf194d, be62a2eb and 312fd5f got rid of a bunch, but they keep coming back. Tracked down with the Coccinelle semantic patch from commit 312fd5f. Cc: Fam Zheng Cc: Peter Crosthwaite Cc: Bharata B Rao Cc: Dominik Dingel Cc: David Hildenbrand Cc: Jason J. Herne Cc: Stefan Berger Cc: Dr. David Alan Gilbert Cc: Changchun Ouyang Cc: zhanghailiang Cc: Pavel Fedin Signed-off-by: Markus Armbruster Reviewed-by: Dr. David Alan Gilbert Acked-by: Cornelia Huck Acked-by: Bharata B Rao Acked-by: Fam Zheng Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Message-Id: <1450452927-8346-17-git-send-email-armbru@redhat.com> --- net/vhost-user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net') diff --git a/net/vhost-user.c b/net/vhost-user.c index b368a90..e4dd089 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -82,15 +82,15 @@ static int vhost_user_start(int queues, NetClientState *ncs[]) options.opaque = s->chr; s->vhost_net = vhost_net_init(&options); if (!s->vhost_net) { - error_report("failed to init vhost_net for queue %d\n", i); + error_report("failed to init vhost_net for queue %d", i); goto err; } if (i == 0) { max_queues = vhost_net_get_max_queues(s->vhost_net); if (queues > max_queues) { - error_report("you are asking more queues than " - "supported: %d\n", max_queues); + error_report("you are asking more queues than supported: %d", + max_queues); goto err; } } -- cgit v1.1