mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06: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:
parent
db78ef5b0a
commit
6daf194dde
16 changed files with 76 additions and 74 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue