mirror of
https://github.com/mii443/qemu.git
synced 2025-09-01 14:49:23 +00:00
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 <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
db78ef5b0a
commit
6daf194dde
@ -530,7 +530,7 @@ int net_init_socket(QemuOpts *opts,
|
||||
qemu_opt_get(opts, "connect") ||
|
||||
qemu_opt_get(opts, "mcast") ||
|
||||
qemu_opt_get(opts, "localaddr")) {
|
||||
error_report("listen=, connect=, mcast= and localaddr= is invalid with fd=\n");
|
||||
error_report("listen=, connect=, mcast= and localaddr= is invalid with fd=");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -550,7 +550,7 @@ int net_init_socket(QemuOpts *opts,
|
||||
qemu_opt_get(opts, "connect") ||
|
||||
qemu_opt_get(opts, "mcast") ||
|
||||
qemu_opt_get(opts, "localaddr")) {
|
||||
error_report("fd=, connect=, mcast= and localaddr= is invalid with listen=\n");
|
||||
error_report("fd=, connect=, mcast= and localaddr= is invalid with listen=");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -566,7 +566,7 @@ int net_init_socket(QemuOpts *opts,
|
||||
qemu_opt_get(opts, "listen") ||
|
||||
qemu_opt_get(opts, "mcast") ||
|
||||
qemu_opt_get(opts, "localaddr")) {
|
||||
error_report("fd=, listen=, mcast= and localaddr= is invalid with connect=\n");
|
||||
error_report("fd=, listen=, mcast= and localaddr= is invalid with connect=");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user