diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-06-22 14:03:54 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-06-24 09:13:36 +0100 |
commit | 6daf194dde15acda153b824299f36f12dfa527a6 (patch) | |
tree | e501eb043697f6ec77338ef8fe4cb5602177fdb0 /hw/strongarm.c | |
parent | db78ef5b0a93b16ad56b70a70e21b1c5e7d06ba8 (diff) | |
download | qemu-6daf194dde15acda153b824299f36f12dfa527a6.zip qemu-6daf194dde15acda153b824299f36f12dfa527a6.tar.gz qemu-6daf194dde15acda153b824299f36f12dfa527a6.tar.bz2 |
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>
Diffstat (limited to 'hw/strongarm.c')
-rw-r--r-- | hw/strongarm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/strongarm.c b/hw/strongarm.c index de08bdf..0e03d61 100644 --- a/hw/strongarm.c +++ b/hw/strongarm.c @@ -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); } |