From 6daf194dde15acda153b824299f36f12dfa527a6 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 22 Jun 2011 14:03:54 +0200 Subject: Strip trailing '\n' from error_report()'s first argument error_report() prepends location, and appends a newline. The message constructed from the arguments should not contain a newline. Fix the obvious offenders. Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net.c') diff --git a/net.c b/net.c index a104976b0b..66123ad409 100644 --- a/net.c +++ b/net.c @@ -710,7 +710,7 @@ int qemu_find_nic_model(NICInfo *nd, const char * const *models, return i; } - error_report("qemu: Unsupported NIC model: %s", nd->model); + error_report("Unsupported NIC model: %s", nd->model); return -1; } -- cgit v1.2.3