summaryrefslogtreecommitdiffstats
path: root/hw/milkymist-tmu2.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-06-22 14:03:54 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-06-24 09:13:36 +0100
commit6daf194dde15acda153b824299f36f12dfa527a6 (patch)
treee501eb043697f6ec77338ef8fe4cb5602177fdb0 /hw/milkymist-tmu2.c
parentdb78ef5b0a93b16ad56b70a70e21b1c5e7d06ba8 (diff)
downloadhqemu-6daf194dde15acda153b824299f36f12dfa527a6.zip
hqemu-6daf194dde15acda153b824299f36f12dfa527a6.tar.gz
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/milkymist-tmu2.c')
-rw-r--r--hw/milkymist-tmu2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/milkymist-tmu2.c b/hw/milkymist-tmu2.c
index 9cebe31..790cdcb 100644
--- a/hw/milkymist-tmu2.c
+++ b/hw/milkymist-tmu2.c
@@ -352,21 +352,21 @@ static uint32_t tmu2_read(void *opaque, target_phys_addr_t addr)
static void tmu2_check_registers(MilkymistTMU2State *s)
{
if (s->regs[R_BRIGHTNESS] > MAX_BRIGHTNESS) {
- error_report("milkymist_tmu2: max brightness is %d\n", MAX_BRIGHTNESS);
+ error_report("milkymist_tmu2: max brightness is %d", MAX_BRIGHTNESS);
}
if (s->regs[R_ALPHA] > MAX_ALPHA) {
- error_report("milkymist_tmu2: max alpha is %d\n", MAX_ALPHA);
+ error_report("milkymist_tmu2: max alpha is %d", MAX_ALPHA);
}
if (s->regs[R_VERTICESADDR] & 0x07) {
error_report("milkymist_tmu2: vertex mesh address has to be 64-bit "
- "aligned\n");
+ "aligned");
}
if (s->regs[R_TEXFBUF] & 0x01) {
error_report("milkymist_tmu2: texture buffer address has to be "
- "16-bit aligned\n");
+ "16-bit aligned");
}
}
OpenPOWER on IntegriCloud