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> --- qga/commands-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qga/commands-posix.c') diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 8fe708f001..5f91275484 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -2254,7 +2254,7 @@ GuestMemoryBlockList *qmp_guest_get_memory_blocks(Error **errp) */ if (errno != ENOENT) { error_setg_errno(errp, errno, "Can't open directory" - "\"/sys/devices/system/memory/\"\n"); + "\"/sys/devices/system/memory/\""); } return NULL; } -- cgit v1.2.3