mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -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
|
@ -1536,14 +1536,14 @@ StrongARMState *sa1110_init(unsigned int sdram_size, const char *rev)
|
|||
}
|
||||
|
||||
if (strncmp(rev, "sa1110", 6)) {
|
||||
error_report("Machine requires a SA1110 processor.\n");
|
||||
error_report("Machine requires a SA1110 processor.");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
s->env = cpu_init(rev);
|
||||
|
||||
if (!s->env) {
|
||||
error_report("Unable to find CPU definition\n");
|
||||
error_report("Unable to find CPU definition");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue